| Completely frustrated. | sturmkatze | 8/19/12 9:19 AM | I am trying to ad the analytics code to my bigger website. It is mostly php (no, I don't know that black magic science). Anyway, I can get it to work w/ normal web pages (html), but I tried the directions to add to a php and it's not working. I added |
| Re: Completely frustrated. | Sampatirao | 8/20/12 11:59 PM | Hi, I hope this is the web site that you are planning to track: http://www.reenactor.net. I haven't seen the tracking code on the site. If the above site URL us wrong, then please provide the URL of the web site where you added the tracking code. Reg |
| Re: Completely frustrated. | sturmkatze | 8/21/12 8:19 AM | Yes, http://www.reenactor.net Where should I put the code? IF I put it in the head section (like it says) of the page templates, it breaks the page and I get an error and no page. In that code, I tried an absolute link in the code to reference the an |
| Re: Completely frustrated. | Sampatirao | 8/21/12 10:13 PM | Hi, Its not mandatory to add the GA tracking code only in Head section. If its not feasible because of some reason then you can add the code at the body section of the page. Please try it on Body, if not feasible in body then in footer section of the |
| Re: Completely frustrated. | sturmkatze | 8/22/12 9:27 PM | I did that. It's in the template(s). Maybe I need a php guru? I really need to see where this site is going. The other has WAY less traffic. WAY less. :-o |
| Re: Completely frustrated. | Sampatirao | 8/22/12 9:39 PM | Where have you added the tracking code? Can you provide me the Page URL to cross check. http://productforums.google.com/forum/#!topicsearchin/analytics/php/analytics/yibe7koCqig RegardsSam. |
| Re: Completely frustrated. | konvut | 8/23/12 8:41 AM | Hello, everybody) sturmkatze, all you need to do is to delete <?php and ?>. It should look like this: |
| Re: Completely frustrated. | sturmkatze | 8/31/12 8:49 PM | Okay, will try that but my bigger problem is when I enter the code for each template page, it "breaks" the page... |
| Re: Completely frustrated. | sturmkatze | 8/31/12 9:01 PM | It says to add this: <?php include_once("analyticstracking.php") ?> However, my site is kind of deep,. so I tried to make it an absolute link so as not to lose it. as in: |
| Re: Completely frustrated. | konvut | 9/3/12 1:43 AM | That happens because your analyticstracking.php isn't correct. There are 2 possible solutions: 1. Delete <?php and ?> in your analyticstracking.php (I wrote that before). So you need to use <?php include_once("http://www.reenactor.net/analyticstra |
| Re: Completely frustrated. | sturmkatze | 9/3/12 3:52 PM | YAY! THAT worked!! I had copied what you said for the php page, I did just what you said and w/ a little twekaing on certain templates, it worked. Got some of my keywords and descriptions fixed right in the process too!! Thanks. I guess tomorrow it w |
| Re: Completely frustrated. | konvut | 9/4/12 12:03 PM | Glad to hear that) |
| Re: Completely frustrated. | sturmkatze | 9/13/12 7:16 PM | FRAK! So, it didn't break the pages, but it also is not seeing the php pages, only the static pages >:-o I guess what I am putting on the template pages is not working? Gonna make me stroke. |
| Re: Completely frustrated. | konvut | 9/14/12 2:39 AM | Google Analytics can't see php pages, because you haven't put tracking code on them. Check if you included template on those pages. Template works well, I can see code on your home page. |
| Re: Completely frustrated. | sturmkatze | 9/14/12 5:40 PM | Ahh, but here's the thing. I DID put the code on all the templates. You're looking at the static html home page. Let's try this: <http://www.reenactor.net/forums/index.php> This is php main page. I know, effed up, but I haven't been able to deal w/ |
| Re: Completely frustrated. | Whims | 9/15/12 7:08 AM | Last I used SMF software there was an admin setting to include GA tracking |
| Re: Completely frustrated. | Whims | 9/15/12 7:11 AM | Actually I correct that, there are mods available that you can download and install via their mods sectionthat should painlessly put it into the correct place that it needs to be (im assuming you are trying to install it to SMF from reading your abov |
| Re: Completely frustrated. | sturmkatze | 9/15/12 7:57 AM | I'm on 1.1.16, for that versions (not 2.0x) You have to be on certain themes. I have about 20 themes due to need for diff keywords, etc. for diff historical time areas, etc. I am gonna look into it, but until I make huge jump to 2.0x that might not h |
| Re: Completely frustrated. | Whims | 9/15/12 8:20 AM | As you are using an older version I did find this for you on their support forum as it seems quite a few ppl were having probs with inserting it into that file http://www.simplemachines.org/community/index.php?topic=272690.0 |
| Re: Completely frustrated. | Whims | 9/15/12 8:22 AM | You may have to have a hunt thru their mods (or ask on their forum) regarding one that is suitable for your version |