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

add third party snippet to be activated with query string parameter

Avatar

Avatar
Validate 10
Level 2
roberty10279373
Level 2

Likes

4 likes

Total Posts

35 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
roberty10279373
Level 2

Likes

4 likes

Total Posts

35 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile
roberty10279373
Level 2

25-09-2017

Would like some help setting up a third party snippet onto our site that execute when it sees a query parameter.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 1
Level 1
stevenl41634786
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
stevenl41634786
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
View profile
stevenl41634786
Level 1

29-09-2017

If you are pasting this into a JavaScript code block, you need to remove the "<script>" references as those are HTML, not JavaScript.

Answers (4)

Answers (4)

Avatar

Avatar
Validate 10
Level 2
roberty10279373
Level 2

Likes

4 likes

Total Posts

35 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
roberty10279373
Level 2

Likes

4 likes

Total Posts

35 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile
roberty10279373
Level 2

29-09-2017

Thanks for the response. We discovered this was the issue and was able to

resolve.

-Robert

On Fri, Sep 29, 2017 at 8:05 AM, Jantzen.Belliston <forums_noreply@adobe.com

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

29-09-2017

Hey Robert,

Since your code snippet begins with <script> it's actually an HTML tag that contains javascript. It's a bit confusing but Javascript tags won't have HTML tags (<tag_name>) in them. Try using the HTML section of the third-party code.

Thanks,
Jantzen

Avatar

Avatar
Validate 10
Level 2
roberty10279373
Level 2

Likes

4 likes

Total Posts

35 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
roberty10279373
Level 2

Likes

4 likes

Total Posts

35 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile
roberty10279373
Level 2

25-09-2017

Here's a copy of the snippet.

<script data-cfasync="false">window.ju_num="7DC7D7B9-A622-4291-B2C2-F3C9B5F68DDF";window.asset_host='//cdn.justuno.com/';(function(i,s,o,g,r,a,m){i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)...',asset_host+'vck.js','juapp');</script>

Per your recommendation, I added the data element and set the parameter name "justuno" and default value "1".  I then went to the conditions and selected the dat element "justuno" and set the value to "1".  I then went javascript / third party tags under non-sequential javascript and added the script but I got his error message. 

Unexpected token < (line: 1, col: 1)

Please advise.

-Robert

On Mon, Sep 25, 2017 at 2:53 PM, Jantzen.Belliston <forums_noreply@adobe.com

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

25-09-2017

Hi,

Do you have an example of the code snippet your trying to deploy?

From the information provided, I would recommend setting up a data element to capture the query parameter. I would then setup a page load rule that uses the "Data Element Value" condition. This will result in a page load rule that checks the data element value at the beginning of each page load. If the condition is met, the rule will fire.

You could place the third party code in the "Javascript/Third Party Tags" section of the rule.

Cheers,
Jantzen