Capture s.products set on page in s.trackLinkVars using DTM? | Community
Skip to main content
garry_przyklenk
Level 2
October 16, 2015
Solved

Capture s.products set on page in s.trackLinkVars using DTM?

  • October 16, 2015
  • 3 replies
  • 2345 views

As the title says, I'm curious to know how you do it? smiley

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by shawncreed1

Garry,

To modify s.linkTrackVars or s.linkTrackEvents in DTM, you can do this via the "Custom Code" editor in the Adobe Analytics section of your rule.  You'll need to keep in mind that the Custom Code editor has its own scope in Javascript, so you'll need to make sure it has the right reference to your s object.

Here's how I'd do what you're trying to do:

[img]Dynamic_Tag_Management__by_Adobe.png[/img]

Hope this helps!

Best,
Shawn

3 replies

shawncreed1
Level 3
October 16, 2015

Garry,

Setting s.linkTrackVars or s.linkTrackEvents can be accomplished via the "Custom Page Code" editor in the Adobe Analytics section of a rule.  Keep in mind that the Custom Page Code editor has its own Javascript scope, so you need to make sure that the 's' object is available to your code before trying to access it.

Here's how I would do what you're trying to do:

[img]Dynamic_Tag_Management__by_Adobe.png[/img]

Hope this helps!

Best,
Shawn

shawncreed1
shawncreed1Accepted solution
Level 3
October 16, 2015

Garry,

To modify s.linkTrackVars or s.linkTrackEvents in DTM, you can do this via the "Custom Code" editor in the Adobe Analytics section of your rule.  You'll need to keep in mind that the Custom Code editor has its own scope in Javascript, so you'll need to make sure it has the right reference to your s object.

Here's how I'd do what you're trying to do:

[img]Dynamic_Tag_Management__by_Adobe.png[/img]

Hope this helps!

Best,
Shawn

shawncreed1
Level 3
October 16, 2015

Garry,

Setting s.linkTrackVars or s.linkTrackEvents can be accomplished via the "Custom Page Code" editor in the Adobe Analytics section of a rule.  Keep in mind that the Custom Page Code editor has its own Javascript scope, so you need to make sure that the 's' object is available to your code before trying to access it.

Here's how I would do what you're trying to do:

[img]Dynamic_Tag_Management__by_Adobe.png[/img]

Hope this helps!

Best,
Shawn