Link/Element Click

Click to the specific link (e.g. button, tab), can be tracked easily as a Google Analytics event.

Webmaster just needs to add some HTML attributes to the code.

Specific Link Tracking — Button data-ga-type="event-ca-href"

Do you want to track click to specific link as named event? Just add some HTML attributes (all with data-ga-) that match Google Analytics event category (data-ga-ec) and event action (data-ga-ea). Link URL will be automatically recorded as event label.

<a href="#buttonA" data-ga-type="event-ca-href"  data-ga-ec="Clicks" data-ga-ea="Buttons" class="btn btn-lg btn-success">Button A</a>
Button A  Button B  Button C 

Specific Link Click Tracking — Tabs data-ga-type="event-cal"

Do you want to track click to the specific page element as named event? Just add some HTML attributes (all with data-ga-) that match Google Analytics event category (data-ga-ec), event action (data-ga-ea) and event label (data-ga-el).

<ul class="nav nav-tabs color3" role="tablist">
    <li role="presentation" class="active"><a href="#desc" aria-controls="desc" role="tab" data-toggle="tab" data-ga-type="event-cal" data-ga-ec="Clicks" data-ga-ea="Tabs" data-ga-el="Description"  >Decription</a></li>
    <li role="presentation"><a href="#techspecs" aria-controls="techspecs" role="tab" data-toggle="tab" data-ga-type="event-cal" data-ga-ec="Clicks" data-ga-ea="Tabs" data-ga-el="Tech Specs" >Tech Specs</a></li>
    <li role="presentation"><a href="#photos" aria-controls="photos" role="tab" data-toggle="tab" data-ga-type="event-cal" data-ga-ec="Clicks" data-ga-ea="Tabs" data-ga-el="Photos" >Photos</a></li>
    <li role="presentation"><a href="#reviews" aria-controls="reviews" role="tab" data-toggle="tab" data-ga-type="event-cal" data-ga-ec="Clicks" data-ga-ea="Tabs" data-ga-el="Reviews" >Reviews</a></li>
  </ul>

Decription

Some description...

Tech Specs

Some technical details...

Photos

About this website

This website is a demo/test website for Advanced Web Analytics Setup Bundle.


GTM used on this website is GTM-5DRBH9J

Get your Advanced Web Analytics Setup Bundle!

Save 30+ hours of struggling with setup and coding.

Learn more