Benefits of method

Data gets sent to Target in real time, and can be used on the same server call the data on which it comes in.

Caveats

  • Requires page code update (directly or via a tag management system).

  • If the data must be used for targeting on a subsequent page/server call, it must be translated to a profile script.

  • Query strings can contain only characters as per the Internet Engineering Task Force (IETF) standard .

    In addition to those characters mentioned on the IETF site, Target allows the following characters in query strings:

    < > # % " { } | \ ^ [ ] `

    Everything else must be url-encoded. The standard specifies the following format ( https://www.ietf.org/rfc/rfc1738.txt ), as illustrated below:

    alt image

    Or, the full list for simplicity:

    alt image

Code examples

targetPageParamsAll (appends the parameters to all mbox calls on the page):

function targetPageParamsAll() { return "param1=value1&param2=value2&p3=hello%20world";

targetPageParams (appends the parameters to the global mbox on the page):

function targetPageParams() { return "param1=value1&param2=value2&p3=hello%20world";

Recommendations: Implementation According to Page Type

Order confirmation: Track Conversions

Category affinity: Category Affinity

Previous pageMethods overview
Next pageIn-page profile attributes

Target


Personalization & Experiementation Excellence with Recommendations and AI

Adobe Customer Success Webinars

Tuesday, Mar 4, 4:00 PM UTC

Adobe Target innovations, including GenAI, and best practices on AI-powered personalization and experimentation at scale.

Register

Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more