Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Delay the Adobe Analytics call (after AJAX data is returned)

Avatar

Avatar
Ignite 1
Level 2
_Lukasz_
Level 2

Likes

3 likes

Total Posts

33 posts

Correct Reply

2 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Boost 3
Boost 1
View profile

Avatar
Ignite 1
Level 2
_Lukasz_
Level 2

Likes

3 likes

Total Posts

33 posts

Correct Reply

2 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Boost 3
Boost 1
View profile
_Lukasz_
Level 2

15-10-2015

How can I make sure that the s.t() that is triggered by DTM by default is called only after data from AJAX becomes available? With s_code, we just simply called s.t() on AJAX success but I'm not sure how to achieve the same gracefully with DTM. The first thing I've tried is to call the _satellite.pageBottom() only on the AJAX success but I discovered that even complete removal of the _satellite.pageBottom() still doesn't prevent the default pageview DTM call (even though the DTM "Load library at" setting is "Page bottom").

Thank you in advance for any help.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
MVP
AlexisCazes
MVP

Likes

186 likes

Total Posts

422 posts

Correct Reply

198 solutions
Top badges earned
Contributor
Shape 1
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Contributor
MVP
AlexisCazes
MVP

Likes

186 likes

Total Posts

422 posts

Correct Reply

198 solutions
Top badges earned
Contributor
Shape 1
Give Back 10
Give Back 5
Give Back 3
View profile
AlexisCazes
MVP

15-10-2015

Hi Lukasz,

In the Adobe Analytics tool in DTM, you will have Customize Page Code. Select after UI settings and open editor.

Put the following code:

return false;

This will prevent the Adobe Analytics from firing the image request but it will initilize all of the variables.

The next step will be to create a direct call rule that will send an adobe analytics image request based on s.t().

Once the AJAX code finished to run call

_satellite.track("STRING OF DIRECT CALL RULL");

That will run the direct call rule and the image request will be sent. All of the Global variables declared in the Adobe Analytics tool should be present in the image request.

Please let me know if you have any issues.

 

Best regards.

 

Alexis Cazes.

Senior Technical Support Engineer

Answers (4)

Answers (4)

Avatar

Avatar
Contributor
Level 2
LAE
Level 2

Likes

5 likes

Total Posts

22 posts

Correct Reply

2 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Validate 1
Boost 5
View profile

Avatar
Contributor
Level 2
LAE
Level 2

Likes

5 likes

Total Posts

22 posts

Correct Reply

2 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Validate 1
Boost 5
View profile
LAE
Level 2

11-12-2015

I just wanted to add my two cents:  This method worked for me as well. 

I did not have two server calls as Chad did.  Thanks for this answer Alexis!!

Avatar

Avatar
Ignite 1
Level 2
_Lukasz_
Level 2

Likes

3 likes

Total Posts

33 posts

Correct Reply

2 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Boost 3
Boost 1
View profile

Avatar
Ignite 1
Level 2
_Lukasz_
Level 2

Likes

3 likes

Total Posts

33 posts

Correct Reply

2 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Boost 3
Boost 1
View profile
_Lukasz_
Level 2

15-10-2015

I can confirm it worked. Thanks again Alexis.

Avatar

Avatar
Ignite 1
Level 2
_Lukasz_
Level 2

Likes

3 likes

Total Posts

33 posts

Correct Reply

2 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Boost 3
Boost 1
View profile

Avatar
Ignite 1
Level 2
_Lukasz_
Level 2

Likes

3 likes

Total Posts

33 posts

Correct Reply

2 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Boost 3
Boost 1
View profile
_Lukasz_
Level 2

15-10-2015

Hi Alexis,

This looks like a good plan! Thank you very much. We will try it out.

Best regards,

Lukasz

Avatar

Avatar
Validate 1
Level 2
chads47842055
Level 2

Likes

3 likes

Total Posts

25 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
chads47842055
Level 2

Likes

3 likes

Total Posts

25 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
chads47842055
Level 2

15-10-2015

Alexis,

Could this method impact bounce rate since there will be 2 image calls? I did this setup on one of our sites and suddenly my bounce rate is in the low single digits. I'm not buying it.

Thanks!
Chad