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

Adobe Launch page load rules not firing on second page view

Avatar

Avatar
Level 1
bellis0
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
bellis0
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile
bellis0
Level 1

22-01-2021

Hi All,

 

Apologies for this being somewhat vague but we have not been able to pinpoint the reason for this very strange issue. The issue is that when a user first lands on our website everything is loading as expected, but after navigating to any other page on the site (the second page view), the majority of our page load rules do not fire. (Note: this is NOT a single page app, so page load is the correct trigger). Also to note, as soon as you navigate a second time and onward (3rd page view+) everything works fine again. 

 

I will be happy to share more specific information on the 3rd party tags that are associated with this issue, but I just wanted to throw this out there to see if anyone has experienced this before.

Adobe Launch not firing page load rules
View Entire Topic

Avatar

Avatar
Coach
MVP
Andrey_Osadchuk
MVP

Likes

510 likes

Total Posts

918 posts

Correct Reply

243 solutions
Top badges earned
Coach
Contributor
Seeker
Bedrock
Boost 500
View profile

Avatar
Coach
MVP
Andrey_Osadchuk
MVP

Likes

510 likes

Total Posts

918 posts

Correct Reply

243 solutions
Top badges earned
Coach
Contributor
Seeker
Bedrock
Boost 500
View profile
Andrey_Osadchuk
MVP

25-01-2021

Thank you for sharing the link!

 

First, pay attention to the errors in the console. Here is what I could see on the first page

1.png

and the following error is on the contact us page (second page):

contact us.png

 

Regarding the tags that may fail to fire, I have looked at the setup with the Launch Inspector and did not find the rule "PL : Top : All Pages". However, there is a rule "PL : Top : All : All Pages" with some custom code that should fire gtag.

 

The 6th action in the rule looks as follows, is it the tag you were referring to as the failed tag?

 

if (_satellite.getVar("are Targeting Cookies Allowed")) {
    var currentTagName = "Performics Google Global Site Tag";
    _satellite.setVar("Current Tag Name", currentTagName);
    _satellite.getVar("Tag Started");
    
    
    _satellite.getVar("ctl.util.loadScript");
    
    //Global site tag (gtag.js)
    
    _satellite.ctl.util.loadScript({
        src: "//www.googletagmanager.com/gtag/js?id=DC-10006467",
        preLoad: function () {
            window.dataLayer = window.dataLayer || [];
            window.gtag = function (){dataLayer.push(arguments);}
            gtag("js", new Date());
          	gtag('config', 'DC-10006467');
            gtag("config", "DC-9129572"); // PFX Global Site Tag
            gtag('config', 'AW-626667738'); // added 8/7/20
            gtag('config', 'AW-608245086'); // added 8/31/20
        }
    });
    
    
    _satellite.setVar("Current Tag Name", currentTagName);
    _satellite.getVar("Tag Finished");
}

 

 

The call of "_satellite.ctl.util.loadScript()" looks quite odd. Do you know what this is and why this is used?

A similar call is also used in the 8th action too.

 

 
Andrey_Osadchuk
And pay attention to the IF condition in the custom code. The code will be executed only when _satellite.getVar("are Targeting Cookies Allowed") returns TRUE.
yuhuisg
@bellis0 after some troubleshooting, I've determined that the "appendChild" error is coming from the "PL : Top : BUS : All Pages (LATAM Only)" rule. The error arises because this rule fires at Library Loaded, which is when the Launch JS script is loaded, which itself is loaded inside <HEAD>... when <BODY> has not been loaded yet! So the browser can't find document.body (i.e. the <BODY> section), and it throws that error. Try running the "MRP Prelytix" custom code in a rule that uses "DOM Ready" or "Window Loaded".
bellis0
Thank you both for the support! To follow up on both of your comments: We were able to solve the appendChild error thanks to your direction @yuhuisg. In regard to your points above, _satellite.ctl.util.loadScript() is just a helper function we added to load scripts. The error you're seeing in the debugger "PL : DOM : Fire AA..." should be taken out since we do not use Target on our Intl sites, so I will do that but it also shouldn't be stopping the other tags from firing (since everything works okay on other page views). As you mentioned, the PL : Top : All : All Pages rule is firing yet gtag is not defined, so that's a good example of the issue that we're seeing. Also to note: since turning the debugger on causes a page refresh, we haven't been using it, as a page refresh seems to cause everything to work properly again. Want to reiterate that I really appreciate the support and if you have any other ideas please let me know!
bellis0
So we were able to resolve the issue. It was a combination of the _satellite.ctl.util.loadScript() not seeming to work properly and the storage durations being added to it. Thank you both for the help!
Andrey_Osadchuk

excellent!

yuhuisg
@bellis0 Great! BTW if you want to use the Adobe Debugger's logger but without causing a page reload: Go to any page in the domain, then open your browser's console and enter "_satellite.setDebug(true)". Now the Debugger is in logging mode, and from that point on, you'll start to see logs without needing a reload. This also means that on the current page, e.g. if you're tracking any link clicks, those will show up in the log too, even though you hadn't enabled the logger when loading the page itself.