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 inList function returns a boolean depending on its inputs. It uses the following arguments:
lv(required, string or array): A delimited list of values or a JavaScript array object to searchvtc(required, string): The value to search ford(optional, string): The delimiter used to separate individual values in thelvargument. Defaults to a comma (,) when not set.cc(optional, boolean): If set totrueor1, a case-sensitive check is made. If set tofalseor omitted, then a case-insensitive check is made. Defaults tofalse.
Calling this function returns true if it finds a match, and false if it does not find a match.
Examples
Version History
3.0 (March 19, 2021)
- Added version number as context data.
v2.1 (September 26, 2019)
- Added the option for the
ccargument to not be a boolean. For example,1is a valid case check value.
v2.0 (April 17, 2018)
- Point release (recompiled, smaller code size).
v1.01 (September 27, 2017)
- Optimized code to reduce size
v1.0 (2009)
- 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.