0
Welcome Guest! Login
0 items Join Now

Add Analytics Head Code

    • Jon G.'s Avatar
    • Jon G.
    • Rocketeer
    • Posts: 55
    • Thanks: 0

    Add Analytics Head Code

    Posted 5 years 6 months ago
    • I'm sure this is documented somewhere, but I cannot find it:

      How can I add javascript code top the site-wide <head> section for our custom analytics provider?
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21561
    • Thanks: 3090
    • messin' with stuff

    Re: Add Analytics Head Code

    Posted 5 years 6 months ago
    • Gantry 5 I presume?

      Very easy, lots of options on the Page Settings tab to allow you full control of your <head> and other insert points on a Per Outline or global (use the Base Outline) basis

      docs.gantry.org/gantry5/configure/page-settings
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • Cyskye's Avatar
    • Cyskye
    • Jr. Rocketeer
    • Posts: 36
    • Thanks: 2

    Re: Add Analytics Head Code

    Posted 4 years 5 months ago
    • Hi, it works but how can you append code IMMEDIATELY after the <head> opening tag? Sometimes many scripts from plugins position themselves before the scripts coming from the Head Properties ... is there a way to be certain that a precise script loads first above all the others? Thank you in advance.
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Add Analytics Head Code

    Posted 4 years 5 months ago

Time to create page: 0.040 seconds