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

Deploying getValOnce plugin in App Measurement via custom library results in an "s is not defined" error

Avatar

Avatar
Validate 1
Level 2
haddnin
Level 2

Likes

4 likes

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Validate 1
Level 2
haddnin
Level 2

Likes

4 likes

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
haddnin
Level 2

09-08-2017

Deploying getValOnce plugin in App Measurement via custom library results in an "s is not defined" error. Any direction on getting this implemented properly in App Measurement?

Replies

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

337 likes

Total Posts

2,286 posts

Correct Reply

815 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

337 likes

Total Posts

2,286 posts

Correct Reply

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

09-08-2017

Hi - I've branched your reply off into it's own question. This will allow us to troubleshoot and answer your question. Are you deploying your app measurement file via DTM? If not, I'll move this to the Analytics community.

Avatar

Avatar
Validate 1
Level 2
haddnin
Level 2

Likes

4 likes

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Validate 1
Level 2
haddnin
Level 2

Likes

4 likes

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
haddnin
Level 2

09-08-2017

Yes, I'm deploying via DTM using Akamai.

Avatar

Avatar
Boost 50
Employee
Kaushalendra
Employee

Likes

65 likes

Total Posts

142 posts

Correct Reply

69 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Employee
Kaushalendra
Employee

Likes

65 likes

Total Posts

142 posts

Correct Reply

69 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Kaushalendra
Employee

10-08-2017

HI haddnin​,

I believe the s object is being referenced in a Third Party tag and hence the error. Can you please DM me the details below and I can take a look:

- Page URL

- Steps to replicate

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

337 likes

Total Posts

2,286 posts

Correct Reply

815 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

337 likes

Total Posts

2,286 posts

Correct Reply

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

10-08-2017

If you're receiving an "s is not defined" message, you're likely experiencing an scoping issue. You can read about a potential solution here - "S is not defined" Error in Adobe DTM

You could also test to see if that is the issue by removing the plug-in from the custom section and instead just write some code that references the s object. If you get a similar error, you know it's a scoping issue.

Avatar

Avatar
Validate 1
Level 2
haddnin
Level 2

Likes

4 likes

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Validate 1
Level 2
haddnin
Level 2

Likes

4 likes

Total Posts

18 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
haddnin
Level 2

11-08-2017

Thank you Jantzen,

That thread solved my "s is not defined" issue. Now that I've implemented the s.getValOnce() plugin, how can I use it in DTM?

Right now, I have s.prop25=s.getValOnce(s.prop25,'ibCustomer'); in a page load rule under Conditions > Custom Criteria. This is not working.

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

337 likes

Total Posts

2,286 posts

Correct Reply

815 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

337 likes

Total Posts

2,286 posts

Correct Reply

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

11-08-2017

Maybe try writing a function in a data element like the one below

Then you can call that data element in the rule builder

prop 25 = %DataElementName%

I apologize for not being able to give a more concrete answer, I'm not an expert with any of the Analytics plugins.