Skip to main content
Sebastiane_Edberg_
Community Advisor
Community Advisor
Feb 26, 2020 12:51 PM UTC
Solved

Common Analytics Plugins: getQueryParam initalized but not working

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
jantzen_b
jantzen_bAccepted solution
Adobe Employee
Mar 27, 2020 7:01 PM UTC

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.

 

 

 

 

 

4 replies

Level 4
Feb 27, 2020 3:00 AM UTC

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.

Translate
Sebastiane_Edberg_
Community Advisor
Community Advisor
Feb 27, 2020 2:32 PM UTC
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
Translate
jantzen_b
Adobe Employee
jantzen_bAdobe EmployeeAccepted solution
Adobe Employee
Mar 27, 2020 7:01 PM UTC

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.

 

 

 

 

 

Translate