Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

Common Analytics Plugins: getQueryParam initalized but not working

Avatar

Community Advisor

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

Avatar

Correct answer by
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

Avatar

Level 4

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.

Avatar

Community Advisor
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

Avatar

Level 4
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.

Avatar

Correct answer by
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