E-commerce tracking not working

Options
I inputed my tracking code over a week ago and I'm still not receiving any tracking of donations. All of my code is current with Universal Analytics. This is the code I placed in the "SITES & SETTINGS" area:



This is the code I placed in the main nav of every page (and I also made sure to place it at the end of the tag, as is indicated in the implementation instructions):



I really need some support on this.
Tagged:

Comments

  • Scott Reuschling
    Scott Reuschling Blackbaud Employee
    Tenth Anniversary Facilitator 1 Photogenic
    Hi Kevin,



    I do not see the code that you added to your post. For future reference you might want to include it in a code tag that looks like this, but replace the [] with <>.



    [code] [/code]



    If you still need some assistance with tracking your donations, please call us at 800-468-8996 so that we can work on a resolution together.
  • Code in "SITES & SETTINGS":



    <br /><br/><script> <br /><br/> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ <br /><br/> (i[r]&#46;q=i[r]&#46;q||[])&#46;push(arguments)},i[r]&#46;l=1*new Date();a=s&#46;createElement(o), <br /><br/> m=s&#46;getElementsByTagName(o)[0];a&#46;async=1;a&#46;src=g;m&#46;parentNode&#46;insertBefore(a,m) <br /><br/> })(window,document,'script','&#47;&#47;www&#46;google-analytics&#46;com/analytics&#46;js','ga'); <br /><br /><br/> ga('create', 'UA-3633645-1', 'blackbaud&#46;com'); <br /><br/> ga('send', 'pageview', BBNCAnalyticsURL); <br /><br/> ga('require', 'ecommerce'); <br /><br/></script> <br /><br/>



    Code on donation page:



    <br /><br/><script type="text/javascript"> <br /><br/> BLACKBAUD&#46;netcommunity&#46;api&#46;DonationConfirmation&#46;add(function (data) { <br /><br/> if (data&#46;TransTotal) { <br /><br/> ga('ecommerce:addTransaction', { <br /><br/> 'id': data&#46;TransID, <br /><br/> 'affiliation': '', <br /><br/> 'revenue': data&#46;TransTotal, <br /><br/> 'shipping': '', <br /><br/> 'tax': '' <br /><br/> }); <br /><br/> for (var i = 0; i < data&#46;Items&#46;length; i++) { <br /><br/> ga('ecommerce:addItem', { <br /><br/> 'id': data&#46;Items[i]&#46;ID, <br /><br/> 'name': data&#46;Items[i]&#46;Name, <br /><br/> 'sku': data&#46;Items[i]&#46;SKU, <br /><br/> 'category': data&#46;Items[i]&#46;Name, <br /><br/> 'price': data&#46;Items[i]&#46;Price, <br /><br/> 'quantity': data&#46;Items[i]&#46;Quantity <br /><br/> }); <br /><br/> } <br /><br/> ga('ecommerce:send'); <br /><br/> ga('ecommerce:clear'); <br /><br/> } <br /><br/> }); <br /><br/> </script> <br /><br/>
  • Scott Reuschling:
    Hi Kevin,



    I do not see the code that you added to your post. For future reference you might want to include it in a code tag that looks like this, but replace the [] with <>.



    [code] [/code]



    If you still need some assistance with tracking your donations, please call us at 800-468-8996 so that we can work on a resolution together.
    Code in "SITES & SETTINGS":



    <br /><br/><script> <br /><br/> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ <br /><br/> (i[r]&#46;q=i[r]&#46;q||[])&#46;push(arguments)},i[r]&#46;l=1*new Date();a=s&#46;createElement(o), <br /><br/> m=s&#46;getElementsByTagName(o)[0];a&#46;async=1;a&#46;src=g;m&#46;parentNode&#46;insertBefore(a,m) <br /><br/> })(window,document,'script','&#47;&#47;www&#46;google-analytics&#46;com/analytics&#46;js','ga'); <br /><br /><br/> ga('create', 'UA-3633645-1', 'blackbaud&#46;com'); <br /><br/> ga('send', 'pageview', BBNCAnalyticsURL); <br /><br/> ga('require', 'ecommerce'); <br /><br/></script> <br /><br/>



    Code on donation page:



    <br /><br/><script type="text/javascript"> <br /><br/> BLACKBAUD&#46;netcommunity&#46;api&#46;DonationConfirmation&#46;add(function (data) { <br /><br/> if (data&#46;TransTotal) { <br /><br/> ga('ecommerce:addTransaction', { <br /><br/> 'id': data&#46;TransID, <br /><br/> 'affiliation': '', <br /><br/> 'revenue': data&#46;TransTotal, <br /><br/> 'shipping': '', <br /><br/> 'tax': '' <br /><br/> }); <br /><br/> for (var i = 0; i < data&#46;Items&#46;length; i++) { <br /><br/> ga('ecommerce:addItem', { <br /><br/> 'id': data&#46;Items[i]&#46;ID, <br /><br/> 'name': data&#46;Items[i]&#46;Name, <br /><br/> 'sku': data&#46;Items[i]&#46;SKU, <br /><br/> 'category': data&#46;Items[i]&#46;Name, <br /><br/> 'price': data&#46;Items[i]&#46;Price, <br /><br/> 'quantity': data&#46;Items[i]&#46;Quantity <br /><br/> }); <br /><br/> } <br /><br/> ga('ecommerce:send'); <br /><br/> ga('ecommerce:clear'); <br /><br/> } <br /><br/> }); <br /><br/> </script> <br /><br/>
  • Scott Reuschling
    Scott Reuschling Blackbaud Employee
    Tenth Anniversary Facilitator 1 Photogenic
    Does your tracking code in Google Analytics look like this? Note the three 'ga' lines at the bottom.



    <script> <br /><br/> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ <br /><br/> (i[r]&#46;q=i[r]&#46;q||[])&#46;push(arguments)},i[r]&#46;l=1*new Date();a=s&#46;createElement(o), <br /><br/> m=s&#46;getElementsByTagName(o)[0];a&#46;async=1;a&#46;src=g;m&#46;parentNode&#46;insertBefore(a,m) <br /><br/> })(window,document,'script','&#47;&#47;www&#46;google-analytics&#46;com/analytics&#46;js','ga'); <br /><br /><br/> ga('create', 'UA-XXXXXXXX-X', 'blackbaud&#46;com'); <br /><br/> ga('send', 'pageview', BBNCAnalyticsURL); <br /><br/> ga('require', 'ecommerce'); <br /><br/></script>
  • Scott Reuschling:
    Does your tracking code in Google Analytics look like this? Note the three 'ga' lines at the bottom.



    <script> <br /><br/> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ <br /><br/> (i[r]&#46;q=i[r]&#46;q||[])&#46;push(arguments)},i[r]&#46;l=1*new Date();a=s&#46;createElement(o), <br /><br/> m=s&#46;getElementsByTagName(o)[0];a&#46;async=1;a&#46;src=g;m&#46;parentNode&#46;insertBefore(a,m) <br /><br/> })(window,document,'script','&#47;&#47;www&#46;google-analytics&#46;com/analytics&#46;js','ga'); <br /><br /><br/> ga('create', 'UA-XXXXXXXX-X', 'blackbaud&#46;com'); <br /><br/> ga('send', 'pageview', BBNCAnalyticsURL); <br /><br/> ga('require', 'ecommerce'); <br /><br/></script>
    It does not. When I look at the code in Google Analytics it looks like this:



    <br /><br/><script> <br /><br/> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ <br /><br/> (i[r]&#46;q=i[r]&#46;q||[])&#46;push(arguments)},i[r]&#46;l=1*new Date();a=s&#46;createElement(o), <br /><br/> m=s&#46;getElementsByTagName(o)[0];a&#46;async=1;a&#46;src=g;m&#46;parentNode&#46;insertBefore(a,m) <br /><br/> })(window,document,'script','&#47;&#47;www&#46;google-analytics&#46;com/analytics&#46;js','ga'); <br /><br /><br/> ga('create', 'UA-3633645-1', 'auto'); <br /><br/> ga('send', 'pageview'); <br /><br /><br/></script> <br /><br/>
  • Scott Reuschling
    Scott Reuschling Blackbaud Employee
    Tenth Anniversary Facilitator 1 Photogenic
    I'd like for you to edit the following:



    ga('create', 'UA-3633645-1', 'auto'); <br /><br/>ga('send', 'pageview');



    to look like this:



    ga('create', 'UA-3633645-1', 'blackbaud&#46;com'); <br /><br/>ga('send', 'pageview', BBNCAnalyticsURL); <br /><br/>ga('require', 'ecommerce');



    Once that is done, you may want to add some conversion goals to Google Analytics.



    1. Login to Google Analytics and select your website's profile.


    2. Click on the Admin button at the top, right-hand corner of the page.


    3. Under the View section, click on Goals and then click on CREATE A GOAL.


    4. Select a template to start with a pre-filled configuration and click the Next step button.


    5. Enter a Goal description and click the Next step button.


    6 Under the Goal details area, select Regular Expression under Destination.


    7. Enter "DonationStep_[PART ID]=DonationStep_Acknowledgement" in the field next to it. You will replace [PART ID] with the actual ID of your donation form part, which can be found in the URL bar (address bar) of your web browser when editing the part (see illustration below).


    8. Select any additional options and then click Save Goal to save your settings.



  • Scott Reuschling:
    I'd like for you to edit the following:



    ga('create', 'UA-3633645-1', 'auto'); <br /><br/>ga('send', 'pageview');



    to look like this:



    ga('create', 'UA-3633645-1', 'blackbaud&#46;com'); <br /><br/>ga('send', 'pageview', BBNCAnalyticsURL); <br /><br/>ga('require', 'ecommerce');



    Once that is done, you may want to add some conversion goals to Google Analytics.



    1. Login to Google Analytics and select your website's profile.


    2. Click on the Admin button at the top, right-hand corner of the page.


    3. Under the View section, click on Goals and then click on CREATE A GOAL.


    4. Select a template to start with a pre-filled configuration and click the Next step button.


    5. Enter a Goal description and click the Next step button.


    6 Under the Goal details area, select Regular Expression under Destination.


    7. Enter "DonationStep_[PART ID]=DonationStep_Acknowledgement" in the field next to it. You will replace [PART ID] with the actual ID of your donation form part, which can be found in the URL bar (address bar) of your web browser when editing the part (see illustration below).


    8. Select any additional options and then click Save Goal to save your settings.



    I can't edit the tracking code in Google Analytics.
  • Scott Reuschling:
    I'd like for you to edit the following:



    ga('create', 'UA-3633645-1', 'auto'); <br /><br/>ga('send', 'pageview');



    to look like this:



    ga('create', 'UA-3633645-1', 'blackbaud&#46;com'); <br /><br/>ga('send', 'pageview', BBNCAnalyticsURL); <br /><br/>ga('require', 'ecommerce');



    Once that is done, you may want to add some conversion goals to Google Analytics.



    1. Login to Google Analytics and select your website's profile.


    2. Click on the Admin button at the top, right-hand corner of the page.


    3. Under the View section, click on Goals and then click on CREATE A GOAL.


    4. Select a template to start with a pre-filled configuration and click the Next step button.


    5. Enter a Goal description and click the Next step button.


    6 Under the Goal details area, select Regular Expression under Destination.


    7. Enter "DonationStep_[PART ID]=DonationStep_Acknowledgement" in the field next to it. You will replace [PART ID] with the actual ID of your donation form part, which can be found in the URL bar (address bar) of your web browser when editing the part (see illustration below).


    8. Select any additional options and then click Save Goal to save your settings.



    The code in my "SITES & SETTINGS" section does have this in it already:



    <br /><br/>ga('create', 'UA-3633645-1', 'blackbaud&#46;com'); <br /><br/>ga('send', 'pageview', BBNCAnalyticsURL); <br /><br/>ga('require', 'ecommerce'); <br /><br/>
  • Scott Reuschling:

    Does your tracking code in Google Analytics look like this? Note the three 'ga' lines at the bottom.

    <script><br /><br/>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){<br /><br/>(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),<br /><br/>m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)<br /><br/>})(window,document,'script','//www.google-analytics.com/analytics.js','ga');<br /><br /><br/>ga('create', 'UA-XXXXXXXX-X', 'blackbaud.com');<br /><br/>ga('send', 'pageview', BBNCAnalyticsURL);<br /><br/>ga('require', 'ecommerce');<br /><br/></script>

    what if i want to add linker in the code will it work?

    ga('create', 'UA-XXXXXXXXX-X', 'auto', {allowLinker: true});

    ga('require', 'linker');

    ga('linker:autoLink', [‘source.com’, 'destination.com']);


    and second question
    ga('create', 'UA-XXXXXXXX-X', 'blackbaud.com');<br /><br/>ga('send', 'pageview', BBNCAnalyticsURL);<br /><br/>ga('require', 'ecommerce');<br /><br /><br/>should i leave blackbaud.com or my netcommunity domain

Categories