Learn business growth with Google Analytics 4 Forums Google Analytics 4 Implementing Google Analytics 4 Function with document.createElement('script')

  • Implementing Google Analytics 4 Function with document.createElement('script')

    Posted by Ashton on 3 February 2023 at 9:16 am

    “I’m trying to switch my website’s tracking to Google Analytics 4, and to do that I’ve got to put a specific script on my page. I wrote a chunk of JavaScript to stick it in if someone clicks the cookie acceptance button. Google gave me this script to use. I made a script tag and tried sticking the function in there, but it’s not playing ball. I’m not sure if I’m using the wrong method to slide this function into the script tags. Has anyone dealt with something similar or got any advice on different strategies to try?”

    Ashton replied 11 months, 2 weeks ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

Log in to reply.