-
AuthorPosts
-
K Schneider Friend
K Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
June 16, 2011 at 6:46 pm #165301Hi,
where do I put the google +1 button script
I need to put it in the header.Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
June 16, 2011 at 7:06 pm #396757I have outlined how to add analytics in the following thread but it will work equally well with your code – http://www.joomlart.com/forums/topic/insert-google-analytic-in-ja-minisite/#post-393219
K Schneider FriendK Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
June 16, 2011 at 7:12 pm #396759The code needs to be Placed in the header or just before closing bodytag
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
June 16, 2011 at 8:22 pm #396775It is fine in the head of your document.
<blockquote><!– Place this tag in your head or just before your close body tag –>
<script type=”text/javascript” src=”https://apis.google.com/js/plusone.js“></script>
<!– Place this tag where you want the +1 button to render –>
<g:plusone></g:plusone></blockquote>The above link detaild how to put it in the head.
K Schneider FriendK Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
June 16, 2011 at 8:49 pm #396780where can I find the head?
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
June 16, 2011 at 8:51 pm #396781It is all in that link I posted above but here it is again.
Copy the file plugins>system>jat3>jat3>base-themes>default>page>default.php into templates>ja_your-template-name>page>default.php and insert your analytics code just before the </head> tag as per below.
<head> <?php //gen head base on theme info $this->showBlock
('head'); ?> <?php $blocks =
T3Common::node_children($this->getBlocksXML ('head'), 'block'); foreach
($blocks as $block) : $this->showBlock ($block); endforeach; ?>
<?php echo $this->showBlock ('css') ?>************YOUR ANALYTICS CODE
HERE*************</head>
K Schneider FriendK Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
June 16, 2011 at 9:24 pm #396786<em>@phill luckhurst 247574 wrote:</em><blockquote>It is all in that link I posted above but here it is again.</blockquote>
sorry that I asked about it but it :((
<em>@phill luckhurst 247574 wrote:</em><blockquote>
I have outlined how to add analytics in the following thread but it will work equally well with your code – http://www.joomlart.com/forums/showt…l=1#post243040
.</blockquote>is not in the link you posted
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
June 17, 2011 at 7:28 am #396861Don’t be sorry, just trying to point to where it is.
What part are you struggling with?
The link – http://www.joomlart.com/forums/topic/insert-google-analytic-in-ja-minisite/#post-393219
Contains how to insert google analytics cos but you can insert your script where it is highlighted in red in that thread.If you really cannot do it then please PM me an ftp account and I will make the change for you.
K Schneider FriendK Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
June 18, 2011 at 5:38 am #397078its working
-
AuthorPosts
This topic contains 9 replies, has 2 voices, and was last updated by K Schneider 13 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum