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

Eloqua tracking script implementation

Avatar

Avatar
Springboard
Level 2
james-mke
Level 2

Likes

2 likes

Total Posts

16 posts

Correct Reply

0 solutions
Top badges earned
Springboard
Establish
Seeker
Engage 1
Validate 1
View profile

Avatar
Springboard
Level 2
james-mke
Level 2

Likes

2 likes

Total Posts

16 posts

Correct Reply

0 solutions
Top badges earned
Springboard
Establish
Seeker
Engage 1
Validate 1
View profile
james-mke
Level 2

06-02-2018

Hello Community,

I am looking for some guidance on how to effectively add an Eloqua tracking script to our site using Adobe DTM. After reading the help files and articles, I feel like I am close, but am missing something important.

Here is the tracking script code (actual site and cookie data removed), that is to be implemented.

Where in Adobe DTM should I add this to fire properly?

<script type="text/javascript">

var _elqQ = _elqQ || [];

_elqQ.push(['elqSetSiteId', '0000']);

_elqQ.push(['elqUseFirstPartyCookie', 'cookietracking.com']);

_elqQ.push(['elqTrackPageView']);

(function() {

function async_load() {

var s = document.createElement('script');

s.type = 'text/javascript';

s.async = true;

s.src = '//img.en25.com/i/elqCfg.min.js';

var x = document.getElementsByTagName('script')[0];

x.parentNode.insertBefore(s, x);

}

if(window.addEventListener) window.addEventListener

('DOMContentLoaded', async_load, false);

else if (window.attachEvent) window.attachEvent('onload', async_load);

})();

</script>

Thank you!

James

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

06-02-2018

Perfect. So if you want to use conditional logic, you'll use a page load or event based rule to setup the conditional logic depending on what logic is needed.

As for the code, any time you see "<script type="text/javascript">" at the start of your code, this means your looking at HTML. It's a bit deceiving because it says both script and Javascript in that code. However, this is basically just javascript wrapped in an HTML container. Most tag providers provide the code this way because it allows users to paste their code into their page code and it will typically work.

If they have a pure javascript version, you could also use that and it could potentially be done non-sequential (done in the background) but HTML should work fine as well.

Answers (3)

Answers (3)

Avatar

Avatar
Springboard
Level 2
james-mke
Level 2

Likes

2 likes

Total Posts

16 posts

Correct Reply

0 solutions
Top badges earned
Springboard
Establish
Seeker
Engage 1
Validate 1
View profile

Avatar
Springboard
Level 2
james-mke
Level 2

Likes

2 likes

Total Posts

16 posts

Correct Reply

0 solutions
Top badges earned
Springboard
Establish
Seeker
Engage 1
Validate 1
View profile
james-mke
Level 2

07-02-2018

Jantzen,

Thank you for validating.

It appears that the solution is working as needed.

Best,

James

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

06-02-2018

Hi James,

Does this tag need to be deployed on every page or is there come conditional logic that should apply before this tag is deployed? For Example, only fire this tag on pages that have "/support" in the path.

If there is conditional logic, you can create a page load rule with the logic applied via the conditions section. Next, you'll place the script from Eloqua in the third-party javascript section.

If no conditional logic is applied, you could add the script to one of your tools in the third-party javascript section.

Thanks,
Jantzen

Avatar

Avatar
Springboard
Level 2
james-mke
Level 2

Likes

2 likes

Total Posts

16 posts

Correct Reply

0 solutions
Top badges earned
Springboard
Establish
Seeker
Engage 1
Validate 1
View profile

Avatar
Springboard
Level 2
james-mke
Level 2

Likes

2 likes

Total Posts

16 posts

Correct Reply

0 solutions
Top badges earned
Springboard
Establish
Seeker
Engage 1
Validate 1
View profile
james-mke
Level 2

06-02-2018

Hello Jantzen,

Thank you for the quick reply!

We intend to use conditional logic to only activate the script when a user accepts the cookie tracking statement.

When I post the code to the javascript / third-party section, what is the recommended type? Sequential JS, Non-sequential JS,  Sequential HTML, or Non-sequential HTML?

Capture.PNG

If adding into one of the JS types I assume I remove the <script>  </script> tags from the code above.

Best,

James