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.
Do you want to track click to specific link as named event?
Just add some HTML attributes (all with data-was-
)
that match Google Analytics event category (data-was-ec
)
and event action (data-was-ea
).
Link URL will be automatically recorded as event label.
<a href="#buttonA" data-was-type="link" data-was-ec="Clicks" data-was-ea="Buttons" class="btn btn-lg btn-success">Button A</a>
Button A
Button B
Button C
Do you want to track click to the specific page element as named event?
Just add some HTML attributes (all with data-was-
) that match Google Analytics event category (data-was-ec
),
event action (data-was-ea
)
and event label (data-was-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-was-type="link" data-was-ec="Clicks" data-was-ea="Tabs" data-was-el="Description" >Decription</a></li>
<li role="presentation"><a href="#techspecs" aria-controls="techspecs" role="tab" data-toggle="tab" data-was-type="link" data-was-ec="Clicks" data-was-ea="Tabs" data-was-el="Tech Specs" >Tech Specs</a></li>
<li role="presentation"><a href="#photos" aria-controls="photos" role="tab" data-toggle="tab" data-was-type="link" data-was-ec="Clicks" data-was-ea="Tabs" data-was-el="Photos" >Photos</a></li>
<li role="presentation"><a href="#reviews" aria-controls="reviews" role="tab" data-toggle="tab" data-was-type="link" data-was-ec="Clicks" data-was-ea="Tabs" data-was-el="Reviews" >Reviews</a></li>
</ul>
This website is a demo/test website for Advanced Web Analytics Setup Bundle.
GTM used on this website is GTM-PZZP5RR
Save 30+ hours of struggling with setup and coding.