• I have installed this plugin, But internal links are not tracked, How can i track this links or how can i set tracking internal links

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gravitate

    (@gravitate)

    There currently is not a default setting for internal links. Most users track internal links by Google Analytics Page views where the previous page was from their site.

    If you want to add internal links then you would need to add a class to all your internal links or run a script that adds a class for you to all your internal links. Then set that class as the selector for your tracking event.

    Here is a jQuery example:

    
    jQuery('a').each(function(){
    // Add Some condition here if the link is internal
        $(this).addClass('internal-link');
    // End conditional here
    });
    
    • This reply was modified 7 years, 8 months ago by Gravitate.
    Thread Starter joinwithveera

    (@joinwithveera)

    Hi,

    I have added this code for all pages, But tracking is not working

    jQuery(‘a’).each(function(){
    // Add Some condition here if the link is internal
    $(this).addClass(‘Internal-link’);
    // End conditional here
    });

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to track internal Links?’ is closed to new replies.