Expand my Community achievements bar.

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 and Adobe Champion

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.