Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!
SOLVED

Tracking link clicks for Smart Banner

Avatar

Level 2

Hi guys,

 

hoping you can assist - we are looking to implement a Smart banner on our website to encourage app downloads for visitors visiting on their mobile devices.

 

We have used the following JS code snippet to implement -> https://github.com/jasny/jquery.smartbanner

We have added the applicable data-id / data-text elements that we want to feed into Adobe (data-id = "link_content_app smart banner" & data-text="view button click").

 

However, analytics is not firing for the View Button clicks.  Any ideas on how to resolve?

1 Accepted Solution

Avatar

Correct answer by
Level 3

We have used the following JS code snippet to implement -> https://github.com/jasny/jquery.smartbanner

We have added the applicable data-id / data-text elements that we want to feed into Adobe (data-id = "link_content_app smart banner" & data-text="view button click").

 

However, analytics is not firing for the View Button clicks.  Any ideas on how to resolve it?

Possible Solutions:
check if you s.tl(): Send data to Adobe Analytics and do not treat it as a page view are set on your Event Based rule if you are using Launch!

Second solution:
If you have not set up an Event-Based rule that listens to the click's on your site you need to do the following

create a rule, and name it whatever you like but be precise and clear: for example 

Screenshot 2020-04-22 at 10.50.21.png

 

My rule is a global rule, it listens to all clicks on the site

Then you need to set up a Core Click event type

 

Screenshot 2020-04-22 at 10.53.22.png

 

On the image above, you can specify the elements where you need your rule to listen too, for example, if you nested you custom HTML attributes on div, button, span, etc 
then you can drill down to even specifying the custom attribute type and use a regular expression to set the types your rule should expect on the data-id attribute

 

I use the delay function because of the nature of my website.

Then you can set up a custom code condition to create a virtual Data Element variable that holds your link name values when the beacon fires please see screenshots below

Screenshot 2020-04-22 at 11.02.59.pngScreenshot 2020-04-22 at 11.08.09.png

 

 

Once you are done this should be able to solve your problem, for additional info on how to use the virtual custom link Data element please see below, set this up in your s,tl() beacon

Screenshot 2020-04-22 at 11.10.03.png

 

 

I hope this was clear

View solution in original post

1 Reply

Avatar

Correct answer by
Level 3

We have used the following JS code snippet to implement -> https://github.com/jasny/jquery.smartbanner

We have added the applicable data-id / data-text elements that we want to feed into Adobe (data-id = "link_content_app smart banner" & data-text="view button click").

 

However, analytics is not firing for the View Button clicks.  Any ideas on how to resolve it?

Possible Solutions:
check if you s.tl(): Send data to Adobe Analytics and do not treat it as a page view are set on your Event Based rule if you are using Launch!

Second solution:
If you have not set up an Event-Based rule that listens to the click's on your site you need to do the following

create a rule, and name it whatever you like but be precise and clear: for example 

Screenshot 2020-04-22 at 10.50.21.png

 

My rule is a global rule, it listens to all clicks on the site

Then you need to set up a Core Click event type

 

Screenshot 2020-04-22 at 10.53.22.png

 

On the image above, you can specify the elements where you need your rule to listen too, for example, if you nested you custom HTML attributes on div, button, span, etc 
then you can drill down to even specifying the custom attribute type and use a regular expression to set the types your rule should expect on the data-id attribute

 

I use the delay function because of the nature of my website.

Then you can set up a custom code condition to create a virtual Data Element variable that holds your link name values when the beacon fires please see screenshots below

Screenshot 2020-04-22 at 11.02.59.pngScreenshot 2020-04-22 at 11.08.09.png

 

 

Once you are done this should be able to solve your problem, for additional info on how to use the virtual custom link Data element please see below, set this up in your s,tl() beacon

Screenshot 2020-04-22 at 11.10.03.png

 

 

I hope this was clear