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

Where should I put data layer for checkout page

Avatar

Avatar
Validate 1
Level 1
vvkpandey
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
vvkpandey
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
vvkpandey
Level 1

02-11-2017

Hi,

I need to implement analytics for a checkout page and i need the product name to populate in analytics. That being said i need a database call to retrieve the product name.

So my question is, what should be the sequence to put the datalayer object, DTM embedded code and piece of code i want to retrieve info from database.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 5
Employee
Abhijeet_Mishra
Employee

Likes

30 likes

Total Posts

73 posts

Correct Reply

35 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile

Avatar
Boost 5
Employee
Abhijeet_Mishra
Employee

Likes

30 likes

Total Posts

73 posts

Correct Reply

35 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile
Abhijeet_Mishra
Employee

09-11-2017

Hi,

The DTM Embed code (Header code) needs to be placed in the 'head' section and the footer code needs to be placed right before the 'body' tag ends.

Thus, it's recommended that the data layer is called and populated before the DTM code is referenced. However, typically data layer implementation is subject to your environment.

Answers (0)