solved Javascript code made my site go blank

Eddy
Eddy
@eddy
11 years ago
479 posts
I placed the google analytics javascript tracking code in the header of my meta template and now my whole site has gone blank, I have since removed the code but I can't reset the cache :(.

updated by @eddy: 02/02/14 02:29:59AM
brian
@brian
11 years ago
10,148 posts
Did you not use the Google Analytics module? Templates are smarty templates - thus squiggly brackets must be escaped.

You will need to truncate the jr_jrcore_cache table, and delete data/cache/jrCore/*.tpl and data/cache/ActiveSkin/*.tpl.php files.

I would highly recommend that you simply use the Google Analytics module.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Eddy
Eddy
@eddy
11 years ago
479 posts
Truncate?
Eddy
Eddy
@eddy
11 years ago
479 posts
I'm a bit confused as there is no data/cache/jrCore/ insite the jr_jrcore_cache table.
Eddy
Eddy
@eddy
11 years ago
479 posts
All is good now, sorry and thank you.

updated by @eddy: 12/23/13 03:46:05PM
brian
@brian
11 years ago
10,148 posts
Did you delete the meta.tpl file? Do you see jrProJamLight/meta.tpl? And did you empty the cache table?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 12/23/13 03:45:19PM
Eddy
Eddy
@eddy
11 years ago
479 posts
I had renamed it, thank you.
Eddy
Eddy
@eddy
11 years ago
479 posts
Where is the google analytics module?
brian
@brian
11 years ago
10,148 posts
ouviste:
Where is the google analytics module?

Search for "google" in the marketplace and you'll see it. It's free.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
I'd recommend installing it through your Marketplace, but here's a direct link to it online too:

https://www.jamroom.net/the-jamroom-network/networkmarket/80/google-analytics


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Eddy
Eddy
@eddy
11 years ago
479 posts
Oh ok, thank you, much appreciated, happy holidays to you and yours.
brian
@brian
11 years ago
10,148 posts
ouviste:
Oh ok, thank you, much appreciated, happy holidays to you and yours.

No problem - have a great holiday too :)


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags