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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Common Analytics Plugins: getQueryParam initalized but not working

sebastiane27965
Level 4
Level 4

Hi, we have a couple of (migrated from DTM) data elements using the "getQueryParam" function, using the Common Analytics Plugin this function is loaded together with the library, but when the rule containing the data element with custom code where this function is used fires, we encounter the following error:

Failed to execute data element module core/src/lib/dataElements/customCode.js for data element customernumber. _satellite.getQueryParam is not a function TypeError: _satellite.getQueryParam is not a function at Object.source

 

Anyone else using this plugin and have some insights to share about getQueryParam function?

1 Accepted Solution
jantzen_belliston-Adobe
Correct answer by
Level 10
Level 10

As the previous answer mentioned, the _satellite.getQueryParam object reference was not safe to use per the documentation here

 

"Reliance on custom code using other _satellite object methods could put your implementation at risk, as these methods could be subject to change in future product releases."

 

Luckily the Launch team made it pretty simple to do this with a data element.

 

Adobe_Experience_Platform_Launch_-_Edit_Data_Element.png

 

 

 

View solution in original post

4 Replies
Haran_Huang
Level 3
Level 3

Launch doesn't seem to support getQueryParam. But data elements have many built-in element types, you can use built-in data elements to grab data.

sebastiane27965
Level 4
Level 4
Hi, well question here is that it should be supported by using this Adobe plugin in Launch: https://exchange.adobe.com/experiencecloud.details.102744.common-analytics-plugins.html and i wonder if anyone else is using this extension and using this function without issues
Haran_Huang
Level 3
Level 3
What I mean is that getQueryParam can be implemented with built-in data elements, and of course you can also implement it with some Extensions.
jantzen_belliston-Adobe
Correct answer by
Level 10
Level 10

As the previous answer mentioned, the _satellite.getQueryParam object reference was not safe to use per the documentation here

 

"Reliance on custom code using other _satellite object methods could put your implementation at risk, as these methods could be subject to change in future product releases."

 

Luckily the Launch team made it pretty simple to do this with a data element.

 

Adobe_Experience_Platform_Launch_-_Edit_Data_Element.png

 

 

 

View solution in original post