Google Analytics/Ad Words

Discussion in 'Customization & add-ons' started by pascalevdb, Aug 20, 2012.

  1. pascalevdb

    pascalevdb Member

    Joined:
    May 30, 2007
    Messages:
    41
    I need to set up a goal in my Analytics account to track my Ad Words. I need to add code to the page that signifies a sale - what page do I put the code?

    Amember Version: 3.1.4
    Using Authorize.net payment processing

    Anything else I need to know?

    Thanks in advance.
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Put it in the /amember/templates/thanks.html template.

    David
  3. pascalevdb

    pascalevdb Member

    Joined:
    May 30, 2007
    Messages:
    41
    Hi David,

    thanks for your response. one question: the Google instructions tell me to put the code before the closing </head> - but that tag is not in that page - were would I put the code? would it be after: {include file="header.html"}
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    For that- you will need to create and call a custom header.html file. Copy the existing header.htm and call it track-footer.html with your custom code. Then in thanks.html change header.html to track-header.html.

    David
  5. pascalevdb

    pascalevdb Member

    Joined:
    May 30, 2007
    Messages:
    41
    ok, I get that. but that page doesn't' have a </head> tag either, would I put it before the </body> tag? Sorry Im not a developer :)

    this is the code in the footer.html file:

    {if $config.google_analytics}
    {include file="google_analytics.js" sale="0"}
    {/if}
    </div>
    <hr />
    <p class="powered">&copy; <a href="http://www.cgi-central.net">CGI-Central.NET</a>, 2002-2006</p>
    </body></html>
  6. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Try before </body> then, I think this is where i put mine.

    David

Share This Page