Highlighted

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

Avatar

Avatar

haddnin

Avatar

haddnin

haddnin

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

Highlighted

Avatar

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

312

Correct Answer

570

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

312

Correct Answer

570
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.

Highlighted

Avatar

Avatar

haddnin

Avatar

haddnin

haddnin

09-08-2017

Yes, I'm deploying via DTM using Akamai.

Highlighted

Avatar

Avatar

Kaushalendra

Employee

Avatar

Kaushalendra

Employee

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

Highlighted

Avatar

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

312

Correct Answer

570

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

312

Correct Answer

570
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.

Highlighted

Avatar

Avatar

haddnin

Avatar

haddnin

haddnin

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.

Highlighted

Avatar

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

312

Correct Answer

570

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

312

Correct Answer

570
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.