Common Analytics Plugins: getQueryParam initalized but not working | Community
Skip to main content
Sebastiane_Edberg_
Community Advisor
Community Advisor
February 26, 2020
Solved

Common Analytics Plugins: getQueryParam initalized but not working

  • February 26, 2020
  • 2 replies
  • 5646 views

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.
Best answer by jantzen_b

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.

 

 

 

 

2 replies

Haran_Huang
Level 4
February 27, 2020

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.

Sebastiane_Edberg_
Community Advisor
Community Advisor
February 27, 2020
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
jantzen_b
Adobe Employee
jantzen_bAdobe EmployeeAccepted solution
Adobe Employee
March 27, 2020

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.