Supported Palceholder
    • 1 Minute to read
    • Dark
      Light

    Supported Palceholder

    • Dark
      Light

    Article summary

    When tracking accelerated mobile pages, there are many predefined placeholders that you can use to add more information to track requests.

    Use the ${varName} format in a requests string or use the default placeholders. The amp-analytics tag will replace the placeholder with the actual value.

    Examples

    Placeholder

    Data Type

    Description

    Example

    ${ampdocHost}

    String

    AMP page URL

    "extraUrlParams": {"pageParameter1":"${ampdocHost}"}

    ${title}

    String

    Title of the current document

    "extraUrlParams": {"pageParameter1":"${title}"}

    ${pageLoadTime}

    String

    Loading time of the page (ms)

    "extraUrlParams": {"pageParameter1":"${pageLoadTime}"}

    AMPDOC_HOST

    String

    AMP page-URL

    "extraUrlParams": {"pageParameter1":"AMPDOC_HOST"}

    TITLE

    String

    Title of the current document

    "extraUrlParams": {"pageParameter1":"TITLE"}

    PAGE_LOAD_TIME

    String

    Loading time of the page (ms)

    "extraUrlParams": {"pageParameter1":"PAGE_LOAD_TIME"}

    RANDOM

    String

    Random number

    "extraUrlParams": {"pageParameter1":"RANDOM"}

    You can find an overview of all placeholders under the following links:


    Was this article helpful?