• Resolved jpresley23

    (@jpresley23)


    There’s an issue with using this plugin with older s_code.js’s that do not use the AppMeasurement object. If you change the line in adobe-analytics.php that reads:

    s = new AppMeasurement();

    to

    if(typeof(s) === 'undefined')
           {
                if(typeof(AppMeasurement) === 'undefined')
                {
                    s = s_gi(s_account);
                }else{
                    s = new AppMeasurement();
                }
           }

    the plugin will work with older s_codes as well as newer ones that use the AppMeasurement object.

    The line s = s_gi(s_account); is just taken from how our s_code.js file creates the s object. There may be other ways to gracefully fallback to declare an s object if AppMeasurement is undefined.

    https://www.ads-software.com/plugins/adobe-analytics/

  • The topic ‘AppMeasurement() object’ is closed to new replies.