DTM implementation on a single page (AngularJS) site. | Community
Skip to main content
Level 2
October 16, 2015
Solved

DTM implementation on a single page (AngularJS) site.

  • October 16, 2015
  • 1 reply
  • 2689 views

Hey Community,

Does anyone run an AngularJS (or similar single page experience) site with Adobe Analytics implemented via DTM. I'd like a good example to base my implementation on. If you have any documentation or best practices to share regarding DTM and angularJS please also let me know. Thanks in advance!

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 Jason_Egan

Paul,

What you want to do is use direct call rules. So when a view changes, you'd set something like this:

_satellite.setVar({
    "page name":"[value for page name]",
    "site section":"[value for site section]"
});
_satellite.track('angular page view')

Then you can just create a direct call rule for the condition of "angular page view" and set the page name and channel (as an example here) in that rule.

- Jason

1 reply

Jason_Egan
Adobe Champion
Jason_EganAdobe ChampionAccepted solution
Adobe Champion
October 16, 2015

Paul,

What you want to do is use direct call rules. So when a view changes, you'd set something like this:

_satellite.setVar({
    "page name":"[value for page name]",
    "site section":"[value for site section]"
});
_satellite.track('angular page view')

Then you can just create a direct call rule for the condition of "angular page view" and set the page name and channel (as an example here) in that rule.

- Jason