Hi there -
Hoping you can help me understand why I a getting the error:
Cannot send beacon: TypeError: window.location.query is not a function
Here is the window.location.query code I found in the Launch library that I think is causing the issue:
settings: {
orgId: "Xreplaced the value hereX@AdobeOrg",
customSetup: {
source: function() {
console.log(window.location.query("cmp"))
}
},
In Launch, I have a data element %campaignid% that is set to capture value from cmp query string parameter.
This value is passed on global page view and one other rule.
The page view isn't showing up in Adobe.
Am I missing something? Is there something else I can share to make the scenario more clear?
Thanks,
PFeach
Solved! Go to Solution.
Views
Replies
Total Likes
I see the Storage duration is set to session - So I suspect the initial page view was missing that parameter so that value carried as empty the rest of the session.
https://experienceleague.adobe.com/docs/launch/using/ui/data-elements.html?lang=en
Views
Replies
Total Likes
Someone added console.log(window.location.query("cmp")) to custom code section in Adobe Analytics extension. Was it me? May very well have been. I am not here to point fingers, lay blame; I'm here for the laughs - the highs, the lows and all the in-betweens.
Thanks.
Views
Replies
Total Likes
I didn't do it.
Views
Replies
Total Likes
I'm not sure where that code is coming from. I'm pretty sure it's not from the Core extension itself. It looks like it could be coming from a Condition or Action in one of your Rules.
Anyway, try replacing "window.location.query" with just "location.query".
Views
Replies
Total Likes
Views
Replies
Total Likes
I found it in the Custom Code section, Adobe Analytics extension. There really is no need for it and it is causing errors...so I've removed it. Thanks for your most helpful reply.
@tim_funk - but how to return value from QSP? namely cmp value. location.search seems to provide the whole QSP...while I am looking for specific value.
Views
Replies
Total Likes
I see the Storage duration is set to session - So I suspect the initial page view was missing that parameter so that value carried as empty the rest of the session.
https://experienceleague.adobe.com/docs/launch/using/ui/data-elements.html?lang=en
Views
Replies
Total Likes
Views
Likes
Replies