Copy link to clipboard
Copied
I have a simple html page in order to test locally the Adobe Analytics.
I try to implement analytics for url.
I have a simple url with onClick event like this:
<a href="https://www.youtube.com/" onClick="s.tl(this,'e','youtube')">Youtube</a>
Using the official at page 223 I found the following variables:
s.referrer="https://www.youtube.com/"s.pageURL="https://www.youtube.com/"
I add them to my code but the problem persists again. What can I do in order to fix the server call problem?
Solved using this:
<a href="https://www.youtube.com/" onClick="s.tl(this,'e','youtube',null,'navigate');return false">Youtube</a>
Have something to add?