• Resolved aga2442

    (@aga2442)


    I read about all the support messages, but nobody shared it clearly.

    he constantly directs them to the github site to tell them what to do there.

    whereas this extension is; It is used not only for those who have an English language but also for the world.

    There is no explanation that you will clearly share what should be added to the amp setting page?

    this may come easy to you, but there is no such thing as every person will understand.

    Please:

    Type
    ID
    JSON Configuration:

    Share what should be written in the fields.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Analytics Values

    Hi @aga2442,
    Sorry for the delay. Here’s some information about the values for the “AMP Analytics Options” page.

    Type: This depends on the type of analytics vendor you use. If it’s Google Analytics, it should be googleanalytics.

    Here are the types to use, based on the vendor:
    https://www.ampproject.org/docs/analytics/analytics-vendors

    ID: You don’t have to add an ID, it’ll be added automatically.

    JSON Configuration: It should look something like this:
    https://developers.google.com/analytics/devguides/collection/amp-analytics/#page_tracking
    Though it’s hard to say exactly where you should get this from, as I’m not sure what analytics provider you’re using.

    Thread Starter aga2442

    (@aga2442)

    Type section: I’m writing “googleanalytcis”.

    In the JSON Configuration field:

    <amp-analytics type = “googleanalytics”>
    <script type = “application / json”>
    {
    ?? “vars”: {
    ???? “account”: “UA-XXXXX-Y”
    ?? },
    ?? “triggers”: {
    ???? “trackPageview”: {
    ?????? “on”: “visible”,
    ?????? “request”: “pageview”
    ???? }
    ?? }
    }
    </ Script>
    </ Amp-analytics>

    I’m adding the code

    (by updating the ua content to that of the web site)

    press save key:

    “Invalid analytics config JSON.” error.

    please help

    https://ibb.co/npkTWd
    https://ibb.co/iwVHPy

    Hi @aga2442,
    Here are the fields to fill out:

    Analytics options

    But you’ll probably need to paste in your own values for the JSON Configuration. Your Google Analytics account should have those.

    Thread Starter aga2442

    (@aga2442)

    hello there

    I recorded all the operations done video.

    are you watching? Is there a place I made a mistake?

    Please watch until the end of the video.

    https://recordit.co/FaNjcNdGBy

    Thread Starter aga2442

    (@aga2442)

    ?????

    Thread Starter aga2442

    (@aga2442)

    ????????????????

    Plugin Author Weston Ruter

    (@westonruter)

    Do not put <amp-analytics> or <script> in this field. The contents of the field should start { and end in }.

    Thread Starter aga2442

    (@aga2442)

    This is what I want from you:
    All code that will come in the 1st field.
    All the code that will come in the 2nd field.

    I just want to add my own analytcis code after the code you send.

    Plugin Author Weston Ruter

    (@westonruter)

    It should be something like this:

    {
      "vars": {
        "account": "UA-???????"
      },
      "triggers": {
        "trackPageview": {
          "on": "visible",
          "request": "pageview"
        }
      }
    }

    You have to supply your own account number.

    The first field should just be googleanalytics.

    Thread Starter aga2442

    (@aga2442)

    Thank goodness, I was able to get the answer I wanted after 1 month.

    thanks @westonruter

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Analytics settings’ is closed to new replies.