Hi Team,
We have one rule to capture link dynamic text values/urls and their clicks for one page in the website.
Events : Library Loaded Page Top
Action: Setvariables > In the custom code - open editor, we are storing the two evars with click function and capturing two events.
Click ID: a#example (number of clicks along with text and url values)
s.eVar1 = example
s.eVar2 = www.example.com
s.events = event 1
s.tl call
Click ID: a#example1 (only number of clicks we are storing here)
s.events = event 2
s.tl call
Scenario: A page has 2 links to capture along with their dynamic text values/dynamic urls and their click events.
All these configuration working fine and storing the values/clicks properly for sometime in a day. Sometime its not working properly.
We have published the build one month back. After publishing, rule was ok. Recently we are seeing these type of intermittent issue.
For the particular page, page view image request call is coming up fine all time but only clicks are not capturing for sometime in a day. Are we missing anything ?
Any idea on this?
Regards,
Shane
Solved! Go to Solution.
Views
Replies
Total Likes
If your clicks cause the browser to navigate to a new page, then yes, you will face the issue of some hits not being collected. This is because there's a "race condition" between your Custom Link hits being sent vs the browser redirecting to that next page. Whichever finishes first "wins". So in some situations, it is entirely possible that the browser has begun redirecting before your Custom Link hits have been sent successfully.
It is recommended to set linkTrackVars and linkTrackEvents using custom code if you set variables in Launch using the custom code editor for s.tl call.
Please refer the links below:
https://experienceleague.adobe.com/docs/analytics/implementation/vars/config-vars/linktrackvars.html...
Also please check if the rule you have created getting fired every time someone clicks on those links. If not, no server call will be generated and data will not be captured.
Views
Replies
Total Likes
If your clicks cause the browser to navigate to a new page, then yes, you will face the issue of some hits not being collected. This is because there's a "race condition" between your Custom Link hits being sent vs the browser redirecting to that next page. Whichever finishes first "wins". So in some situations, it is entirely possible that the browser has begun redirecting before your Custom Link hits have been sent successfully.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies