Expand my Community achievements bar.

SOLVED

Getting _satellite.getvar is not a function error

Avatar

Level 3

I implemented the async launch script in the head section. But, when I load the page and see it in console, I get the error _satellite.getVar is not a function.

Any idea what could be the issue?

2018-07-11_15-23-38.png

Thanks

Ankit

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

That's a good one!

It says that it's coming from with your AppMeasurement's doPlugins function...

My only guess (and this is a wild guess at that) is that somewhere prior to this error, someone inadvertently overwrote _satellite.getVar by assigning something to it that is. indeed, not a function.  

A line of code like this would do that :

_satellite.getVar="foo";

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

That's a good one!

It says that it's coming from with your AppMeasurement's doPlugins function...

My only guess (and this is a wild guess at that) is that somewhere prior to this error, someone inadvertently overwrote _satellite.getVar by assigning something to it that is. indeed, not a function.  

A line of code like this would do that :

_satellite.getVar="foo";

Avatar

Community Advisor

Ankit,

     Just wondering what you found to be the issue. 

-Stew