BV Commerce Forum
»
BV Commerce Support
»
Development
»
How to Add Google Analytics and eCommerce Tracking to BV Commerce 5
Rank: Member
Joined: 7/18/2006(UTC) Posts: 18
|
The control RenderGoogleReceipt() does not fire in the receipt.aspx when you add the google analytics e-commerce tracking to the receipt page. You dont get this hidden <textarea>. Am I missing something?
|
|
|
|
Rank: Member
Joined: 8/17/2006(UTC) Posts: 681
|
Yeah. That control is a bit strange. It does not seem to work for me. Also the implementation of the UTM:I looks wrong. It should be: For Each li As BVSoftware.Bvc5.Core.Orders.LineItem In o.Items sb.Append(vbCrLf) '<<<--- this is missing making the text all on one line sb.Append("UTM:I|")
Regards, Corneliu. |
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 1,786
|
Here are the latest files we're using on our site. File Attachment(s): GoogleAnalyticsReceipt.ascx.vb (4kb) downloaded 429 time(s).You cannot view/download attachments. Try to login or register.
|
|
|
|
Rank: Member
Joined: 2/18/2006(UTC) Posts: 172
|
Marcus,
I can't find these 2 files... Could you please tell us where they are?
Thank you.
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
Download them from Marcus' last post and follow the instructions in the first post above. Those files will go in /BVModules/Controls. |
|
|
|
|
Rank: Member
Joined: 2/18/2006(UTC) Posts: 172
|
I can't save or open GoogleAnalyticsReceipt.ascx (application/xml)
|
|
|
|
Rank: Member
Joined: 2/18/2006(UTC) Posts: 172
|
How do I download GoogleAnalyticsReceipt.ascx 0KB (application/xml) ? I am getting the error...
|
|
|
|
Rank: Member
Joined: 4/28/2003(UTC) Posts: 141
|
try right clicking on the link and then click save target as. That might do it Richard www.somethingmorestore.com
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
Here they are zipped, Michael_B, if that helps. File Attachment(s): GoogleAnalyticsReceipt.zip (2kb) downloaded 367 time(s).You cannot view/download attachments. Try to login or register. |
|
|
|
|
Rank: Member
Joined: 2/18/2006(UTC) Posts: 172
|
|
|
|
|
Rank: Member
Joined: 2/18/2006(UTC) Posts: 172
|
In checkout.master and myaccount.master you will want to use "https://ssl.google-analytics.com/urchin.js"[b]
WHERE THE checkout.master FILE IS? I AM LOOKING INTO THE CODE AND I SEE THE GOOGLE ANALYTICS CODE ON MY CHECKOUT.ASPX PAGE... BUT I NEVER PUT IT THERE....
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
Themes aren't required to contain Checkout.master. Your checkout will just use Default.master by, well, default. But you can add Checkout.master to your theme and it will automatically be used by your selected checkout process, which is what you should do in this case.
What is the path to the checkout.aspx file you are referring to? |
|
|
|
|
Rank: Member
Joined: 2/18/2006(UTC) Posts: 172
|
I am not sure if this is the right answer but this is what I have in the URL when I go to the checkout: http://localhost/bvc5/checkout/checkout.aspx
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
No, I mean the file path. That URL has been re-written by BV, so it isn't referencing the actual location of the file checkout.aspx.
For example, which checkout are you using? If it's the single page checkout, the path to the file would be ~/BVModules/Checkouts/One Page Checkout/Checkout.aspx. |
|
|
|
|
Rank: Member
Joined: 2/18/2006(UTC) Posts: 172
|
Yes Cliff, I am using single page checkout process. Could you please tell me what I need to change or add?
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
Just use the secure URL for Google Analytics in Default.master, since it sounds like you've already added your Google code there. And, of course, follow the instructions in the first post of this thread. |
|
|
|
|
Rank: Member
Joined: 2/18/2006(UTC) Posts: 172
|
Thank you Cliff. I will add https://ssl. to the default master under \wwwroot\BV Commerce 5\BVModules\Themes\FreshStart1_Theme_BV5
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
Quick question:
Marcus' instructions say to include the scripts before the closing </header> tag. I'd prefer to insert directly before the closing </body> tag, since it's an external script.
Can you see any issues with doing this? Will the conversion code placed by the control still be inserted after urchin.js? |
|
|
|
|
Rank: Member
Joined: 2/21/2007(UTC) Posts: 1,113
|
I'm running into issues with the code that is set in the .master pages -- if I use the "https://" in the Default.master -- I get a warning from IE7 about the script (blocked content) I think in Firefox it said something about the certificate (belonging to google.com) not matching the URL (google-analytics.com).
I've seen the posts about the checkout.master -- but I don't have a checkout.master in my theme (or any of the themes that I can find) |
|
|
|
|
Rank: Member
Joined: 4/10/2006(UTC) Posts: 462
|
The way the master page theming system works is that if a specific master page is not found, it uses the default.master masterpage. In other words, you technically don't need a Product.master, Checkout.master, Service.master, etc, however if when the software looks for those files, it doesn't find it, it uses the default.master file. Therefore, your problem can be corrected by duplicating the default.master (since the layout you want is obviously the same) and calling it Checkout.master and using the secure google analytics url mentioned previously in the Checkout.master page and using the non-secure url in the default.master. |
Netriplex Corporation<br /> |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.