1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to track popups

Discussion in 'White Hat SEO' started by Rezith, Jan 11, 2016.

  1. Rezith

    Rezith Registered Member

    Joined:
    Apr 12, 2012
    Messages:
    73
    Likes Received:
    11
    Hi!

    Can you guys suggest how can I track popups (for example on site hlw-wp.bigdropinc(dot)net/projects/ when click on some project). I want to see what project was clicked, how many times they was clicked and other stats. Google Analytics will work for it? If yes how it can be done? Or what you can suggest?
     
  2. b1acky

    b1acky Newbie

    Joined:
    Jun 17, 2015
    Messages:
    47
    Likes Received:
    13
    If you are using jquery and google analytics on your website:

    Code:
    $(function(){
    $('.item').click(function(){
    // you should get title or any other identifier for your item here
    // eg.: var itemTitle = $(this).find('h3').text();
    ga('send', 'event', 'items', 'click', itemTitle);
    });
    });
     
    • Thanks Thanks x 1
    Last edited: Jan 11, 2016