Install the plug-in using custom code editor
If you do not want to use the Common Analytics Plugins plug-in extension, you can use the custom code editor.
- Log in to Adobe Experience Platform Data Collection using your AdobeID credentials.
- Click on the desired property.
- Go to the Extensions tab, then click the Configure button under the Adobe Analytics extension.
- Expand the Configure tracking using custom code accordion, which reveals the Open Editor button.
- Open the custom code editor and paste the plug-in code provided below into the edit window.
- Save and publish the changes to the Analytics extension.
Install the plug-in using AppMeasurement
Copy and paste the following code anywhere in the AppMeasurement file after the Analytics tracking object is instantiated (using s_gi). Preserving comments and version numbers of the code in your implementation helps Adobe with troubleshooting any potential issues.
Use the plug-in
The pt function uses the following arguments:
l(required, string): A list of variables that the function contained in thecfargument can execute against.de(optional, string): The delimiter that separates the list of variables in thelargument. Defaults to a comma (,).cf(required, string): The name of the callback function contained in the AppMeasurement object to be called against each of the variables contained in thelargument.fa(optional, string): If the function in thecfargument calls for additional arguments when it runs, include them here. Defaults toundefined.
Calling this function returns a value if the callback function (in the cf argument) returns a value.
Example Calls
Example #1
The following code is part of the getQueryParam plug-in. It runs the getParameterValue helper function against each of the key-value pairs that are contained in the URL’s querystring (fullQueryString). In other to extract each key-value pair, the fullQueryString must be delimited and split out by an ampersand “&” character. The parameterKey refers to the query string parameter that the plug-in is specifically trying to extract from the query string
The above line is a shortcut for running code that resembles the following:
Version History
3.0 (March 19, 2021)
- Added version number as context data.
2.01 (September 24, 2019)
- Minor code changes to reduce overall size
2.0 (April 17, 2018)
- Point release (recompiled, smaller code size).
- Added support for both H-code and AppMeasurement.
1.0 (23 September 2013)
- Initial release.
More help on this topic
Was this content helpful?
Announcements
Get hands-on with agentic AI.
Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.
Find an eventAdobe CX Analytics Portfolio Roadmap Webinar - Americas & EMEA
Preview the CX Analytics roadmap across CJA, Adobe Analytics, and more. Ask the team.
Adobe CX Analytics Portfolio Roadmap Webinar - Americas & APAC
Preview the CX Analytics roadmap across CJA, Adobe Analytics, and more. Ask the team.