Redirection url in Adobe Analytics

956 views Asked by At

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 documentation 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>
1

There are 1 answers

0
Mark Stringham On BEST ANSWER

If you set your s.linkInternalFilters correctly you shouldn't need to hard code an exit link for www.youtube.com.

The purpose of this configuration variable is to tell Adobe Analytics which link clicks will be considered internal to your site vs. external link clicks (exits) which take you away from your site (IE www.youtube.com).

If you're looking to count any click on a YT link as an exit you can set your s.linkInternalFilters like this:

// s_code or DTM JS config
s.linkInternalFilters ="my-local-URL,javascript:,mailto:,tel:"

YT link clicks (exits) will now be tracked automatically.