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

Uncaught SyntaxError: Unexpected token if

Avatar

Avatar
Validate 1
Level 1
ridderm22429092
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
ridderm22429092
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ridderm22429092
Level 1

05-12-2016

Hello,

I was wondering if anybody is getting the following:  when I try to access the test page in an incognito browser (Chrome), I'm getting a "Uncaught SyntaxError: Unexpected token if".  I tried this with IE and FF but only Chrome seems to be the one displaying the error.  When looking into the error, it looks like the source of the issue is typeof(s_tnt)=='undefined'.  The implementation of Target is standard, so no custom work was done.  If anybody have any insights on how to fix this, please let me know.  I'm including screenshots of the error.

Thanks,

Ridder H. Manzanet

Accepted Solutions (1)

Accepted Solutions (1)

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

07-12-2016

It's hard to tell without taking a deep look into the implementation. I would check to see if any of your other code libraries reference that variable. It might be possible that an old Analytics plug-in is referencing that variable from your s_code/AppMeasument library (if you an Analytics customer). If that doesn't turn anything up, I'd recommend opening a ticket with Target Customer Care. They can gather the necessary details for an in depth look into your implementation.

Answers (3)

Answers (3)

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

90 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

90 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

02-01-2017

Hi Ridder,

Is the above issue resolved?

Thanks & Regards

Parit Mittal

Avatar

Avatar
Validate 1
Level 1
ridderm22429092
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
ridderm22429092
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ridderm22429092
Level 1

07-12-2016

Thanks Jantzen for the quick reply.  The site doesn't have the sc-tnt integration implemented.  Anything else that I should be looking for?

Thanks,

Ridder H. Manzanet

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

06-12-2016

Hi Ridder,

Can you tell me if you are using the legacy sc-tnt integration? Typically, that variable is used in the legacy integration which has been deprecated. I'd suggest looking into the newer A4T integration.

Thanks,
Jantzen