-
AuthorPosts
-
ekatronik Friend
ekatronik
- Join date:
- July 2010
- Posts:
- 40
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
August 19, 2011 at 1:16 pm #167583Hi all,
i want to insert google anlytics code in my site,
how can i do that..?
thanks
pritam Friendpritam
- Join date:
- April 2011
- Posts:
- 609
- Downloads:
- 0
- Uploads:
- 29
- Thanks:
- 11
- Thanked:
- 125 times in 113 posts
August 19, 2011 at 1:20 pm #407082Hello ekatronik ,
To insert the Google Analytic Code
Solution 1:
Create a custom html module but make sure you use the no editor option or TinyMCE etc will parse your code as text. Put your code in that then place this new module in the debug position.
Solution 2.
Open your templatelayoutsdefault.php, handheld.php, iphone.php
You can see <body> tag1 user says Thank You to pritam for this useful post
ekatronik Friendekatronik
- Join date:
- July 2010
- Posts:
- 40
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
August 19, 2011 at 2:23 pm #407093Hi Pritam
thanks for your advice
ekatronik Friendekatronik
- Join date:
- July 2010
- Posts:
- 40
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
August 27, 2011 at 2:31 pm #408936I has done the solution #1, but that is not work
so i wont to try solution #2, but in my template folder I cannot found Layout folder with default.php file inside
Manos ModeratorManos
- Join date:
- February 2014
- Posts:
- 2806
- Downloads:
- 46
- Uploads:
- 56
- Thanks:
- 200
- Thanked:
- 633 times in 576 posts
August 27, 2011 at 4:06 pm #408950Hi ekatronik,
You can try adding GA code this way:
Find the file default.php on JA T3 Plugin folder, it is located on -> “/plugins/system/jat3/jat3/base-themes/default/page/default.php”
Then you can make a copy of that file to “/templates/<yourT3template>/page/default.php”So after that you can edit default.php (on the new location) file and insert your GA code just before the </head> tag.
I hope that helps you out!
Regards
Manos
1 user says Thank You to Manos for this useful post
ekatronik Friendekatronik
- Join date:
- July 2010
- Posts:
- 40
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
August 27, 2011 at 11:56 pm #409034Hi Pascm
thanks
I was to recheck my GA account, that is working now, with solution #1 from Pritam
Thanks you All
mfcphil Friendmfcphil
- Join date:
- September 2007
- Posts:
- 2866
- Downloads:
- 3
- Uploads:
- 218
- Thanks:
- 211
- Thanked:
- 388 times in 133 posts
August 30, 2011 at 2:11 pm #409648might want to add a little note to your module like – remember to turn go to NO EDITOR if you are doing any edits or your adding it to any other pages!
-
AuthorPosts
This topic contains 7 replies, has 4 voices, and was last updated by mfcphil 13 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum