Common Analytics Plugins: getQueryParam initalized but not working

Avatar

Avatar
Validate 1
Level 2
sebastiane27965
Level 2

Likes

8 likes

Total Posts

40 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Validate 1
Level 2
sebastiane27965
Level 2

Likes

8 likes

Total Posts

40 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile
sebastiane27965
Level 2

26-02-2020

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

27-03-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.

 

Adobe_Experience_Platform_Launch_-_Edit_Data_Element.png

 

 

 

Answers (1)

Answers (1)

Avatar

Avatar
Establish
Level 2
Haran_Huang
Level 2

Likes

17 likes

Total Posts

54 posts

Correct reply

6 solutions
Top badges earned
Establish
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Establish
Level 2
Haran_Huang
Level 2

Likes

17 likes

Total Posts

54 posts

Correct reply

6 solutions
Top badges earned
Establish
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Haran_Huang
Level 2

26-02-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.