Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!

Console Error

Avatar

Level 2

we are getting the below console error which is related to adobe analytics.

 

_satellite._runScript1 is not a function

 

we have used this function like

_satellite["_runScript1"](function(event, target, Promise) {

fbq('init','');
fbq('track', 'PageView');

gtag('event', 'conversion', {'send_to':  ' ' });

});

 

kindly help us to sort out this error.

2 Replies

Avatar

Community Advisor

You shouldn't be calling _satellite._runScript1 directly in your code. I believe that function had been created because you have a Custom Code action somewhere in your Rules.

Avatar

Community Advisor

I agree with this completely... you should just add your fbq and gtag code into a custom script section in your rules... Launch will create the _satellite._runScript and execute it based on the trigger rules for the event.