Page 1 of 1

Flare & Google Analytics - Flare not accepting GA tag code

Posted: Fri Mar 07, 2025 8:30 am
by mel_flare_user
I cannot successfully add a Google Analytics tag to my Flare master page.
When I add the tag, Flare shows an error "src is an unexpected token"
Why is "src" an "unexpected token" when the tag code is directly copied and pasted from the Google Analytics admin info.
How do I get the GA tag to be accepted?

Re: Flare & Google Analytics - Flare not accepting GA tag code

Posted: Sun Mar 09, 2025 11:50 pm
by NorthEast
When you paste in the code from Google Analytics, look for async and change it to async=""

You need to do this because Google's code is HTML, but Flare's editor uses XHTML which is a stricter form of HTML. One of the differences is that you can't minimise attributes by missing out the ="".

Re: Flare & Google Analytics - Flare not accepting GA tag code

Posted: Mon Mar 10, 2025 4:52 am
by mel_flare_user
Thank you! I changed the code as recommended and the error does not appear. Thanks so much for taking the time to answer my question.