활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
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.
해결되었습니다! 솔루션으로 이동.
토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.
조회 수
답글
좋아요 수
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
and the following error is on the contact us page (second page):
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.
조회 수
답글
좋아요 수
Are there any conditions in your page load rules?
When you enable Launch logging in the Adobe Experience Cloud Platform Debugger, do you get any log output about your page load rules on the 2nd pageview?
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
Hi @yuhuisg I've an opposite situation, core-page bottom rule with conditions fires on second page load, and not first. Why a rule fires on page refresh and not on first page load?
조회 수
답글
좋아요 수
The Core > Page Bottom event fires under 2 situations:
In your case, check the following:
I've seen the second case happen before, usually because there was some other resource (e.g. an external JS script) that took a long time to load, so it would fail at the first page load, but then succeed on the second page load when more time had elapsed already to let that resource load properly.
You can also try replacing your Core > Page Bottom event with the Core > DOM Ready event to see if you still encounter the same problem. If you do, then it would point to the second situation, i.e. there is something in the page that prevents document.readyState from being set properly at first page load.
the page was getting redirected and the condition was not met. Now, modified the condition accordingly, so its working now! thanks a lot @yuhuisg
조회 수
답글
좋아요 수
Could you share a link?
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
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
and the following error is on the contact us page (second page):
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.
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
excellent!
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수