Tracking Code won't save

Permalink
Hi there

I've noticed an issue with my website's tracking code, which is different to the Google Analytic Tracking Code. Therefore I have been trying to copy the code on GA and paste it onto my website's tracking code.

HOWEVER, the biggest issue is that I can't SAVE the new tracking code...

Every time I change the tracking code and click "save", it would revert back to what it was previously...(which is the wrong tracking code).

But if i type something random (non-code related) in the text box, it saves. So I've come to the conclusion that the Tracking Codes just doesn't like codes....

Can someone please help me out?


Thanks a lot
Frances

 
studio4graphics replied on at Permalink Reply
Thats a weird problem. I don't know how to fix it.

A solution could be to create a stack and hardcode it in the template. Then, in dashboard > stacks, you could paste the tracking code and save it.
francestruong replied on at Permalink Reply
Hi Studio4graphics

I don't know anything about coding so I don't even know what you mean by hardcode it in the template...

Do you know which file/template name I would have to dig through?
And do you know what code i should put into it?


Thanks
Frances
studio4graphics replied on at Permalink Reply
What version of concrete5 do you use?
5.6 or 5.7?
Suggestion 1 hardcode it in your template:
> Download you theme with a FTP program.
> Look for a map elements > footer.php
> Edit footer.php and place your trackingcode before </body>
free html editor:http://brackets.io/
> upload footer.php

Suggestion 2 for editing the code easily later on:
> Go to dashboard stacks and create the following stack: Trackingcode
> Download your theme, edit footer.php
> Place the following code before </body>
<?php $stack = Stack::getByName('Trackingcode'); $stack->display(); ?>

> Go to dashboard stacks > Trackingcode > place your tracking code in a html block

At least I think this will work in 5.6 (don't know about 5.7 and stacks)