Originally posted by pinbrook
Announcement
Collapse
No announcement yet.
Daves guide to Google Analytics with Actinic
Collapse
X
-
Thanks for your great post Dave,
Just one thing I have picked up... If your taking card details manually then and have a secure server set up then the bit of code in Act_CheckoutPrimary.html that reads:
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
needs to read:
<script src="https://www.google-analytics.com/urchin.js" type="text/javascript">
Notice the https instead of http.
Comment
-
Hi - I have just used Dave's code which work a treat.
I would like to implement anqi's additional code but would not be too happy having to download order04.html to amend as I'm sure I some point I would overwrite it with an upload.
Anybody clever enough to suggest a solution whereby this can be done on the PC before an upload (definitely not me...)?Regards
David
Comment
-
Originally posted by domino12) Place the following code in Act_ReceiptPrimary.html using your own Google Analytics number where indicated. This code needs to go in the <HEAD> section.
3) Edit the Onload control in the <BODY> tag of Act_ReceiptPrimary.html to include javascript:__utmSetTrans().
How do you use Google Analytics' Ecommerce tracking if the site doesn't use Act_ReceiptPrimary.html? Our site only uses Act_Order04.html to provide a receipt, and this edited template doesn't have any <HEAD> or <BODY> tags... so where would the code go?
Also, if anyone could tell me how to use anqi's code too, that would be really helpful, as it just confused me
Comment
-
Design | Options - Layout tab - click edit beside the Receipt page layout. I think you'll find you do use Act_ReceiptPrimary.html.Bill
www.egyptianwonders.co.uk…
Text directoryWorldwide Actinic(TM) shops
BC Ness Solutions Support services, custom software
Registered Microsoft™ Partner (ISV)
VoIP UK: 0131 208 0605
Located: Alexandria, EGYPT
Comment
-
That would seem to give you two choices.
Switch to Act_ReceiptPrimary for that page
OR
Save your existing template to a new name and assign that new name as the receipt template, then figure out where the code needs to go.
Hmm, of course - there's a third - don't use the code.Bill
www.egyptianwonders.co.uk…
Text directoryWorldwide Actinic(TM) shops
BC Ness Solutions Support services, custom software
Registered Microsoft™ Partner (ISV)
VoIP UK: 0131 208 0605
Located: Alexandria, EGYPT
Comment
-
Thanks.
I guess "don't use the code" is always available as a last resort, but I'd like to try a few things first if anyone has any other ideas?
I've only recently come into the site's maintenance, and the guy who designed it obviously had a very clear prodedure, as the Act_Order04.html template generates the page that is used as a receipt.
When doing test orders, that's the final page you see. There is no other page. Hence that needs to be the one to put the code on.
Comment
-
Yes
Act_Order04.html template generates the page that is used as a receiptBill
www.egyptianwonders.co.uk…
Text directoryWorldwide Actinic(TM) shops
BC Ness Solutions Support services, custom software
Registered Microsoft™ Partner (ISV)
VoIP UK: 0131 208 0605
Located: Alexandria, EGYPT
Comment
-
i think what wjcampbe is trying to say is that act_primaryreceipt generates the main layout of the page (navigation, toplogo, and such) and then act_order04 generates the actual body of the page, so in reality when compiled on the server, order04 becomes PART OF primaryreceipt to create the complete receipt page
Note:- as you say you dont use primaryreceipt, this was just an example, change the name primaryreceipt to the one you use and the same thing applies
SCOOP
Comment
-
Hi Chris,
How long ago did you make the changes? It can take a day or so for the data to be visible on Analytics.
I've looked at your source code for your brochure pages and it looks fine but I can't see your receipt page code without placing an order.
Also, did you define your site as an E-COMMERCE SITE? This needs to be done in your Analytics profile settings.
If the above doesn't help can you post your Act_ReceiptPrimary.html file?
Dave
Comment
Comment