KnowledgeCenter/AmeriCommerce/Store Operations/Management

External Tracking Scripts: Where can external tracking scripts be placed?

Support Agent
posted this on September 05, 2012 18:26

You can use external tracking scripts for extensive tracking capabilities such as entire site visitor tracking scripts, order tracking scripts that track conversions/visits. Below are some guidelines on where you can place your scripts:

Where to put General Tracking Scripts:

You can place general tracking scripts in the footer under Themes > [Active Theme] > Footer.

1. From your active menu navigate to Themes > [Active Themes]

Note: You can identify your active theme by locating the theme in the "Active on Current Store" sectionactiveTheme.png

 

2. On the left theme navigation menu click on the Footer link

3. Click on the Widgets link on the Footer menu

4.  Drag a Custom HTML widget from the Available Widgets area to the footer widgets area on the right.

customHtml.png

5. Click the Wrench Edit icon on your newly created Custom HTML widget.

6. Click the SWITCH TO The Text Only Edito link in lower right hand of WYSIWYG editor

7. Paste your Script into the text editor

8. Click Save

enterScript.png

Where To Place Scripts That Specify To Be Placed In Head Tags:

There are 2 ways... 

1) is following the steps we just outlined for adding a script to the theme, but instead of the footer, you'd place it in the head tags. (no custom html widget needed, as the head tags section is already only html)

and

2) You can place them in the "Analytics Script" section of Settings > Marketing > General > Miscellaneous

headScript.png

 

Where to put Order Specific Tracking scripts:

You can place order specific tracking scripts under Settings > Orders > General scroll to the Miscellaneous area and place the script with the Place Order Script script area:

 

thankyou.png

 

The script will be added to the bottom of the ViewOrder page. 

The script can reference order based merge codes to populate order information.

Note:

  • This script will only be inserted and run one time per order and will be right when the order is initially placed.
  • The script will not be shown when a credit card is declined.

The primary purpose of this area is for use with external scripts that you may need to run only one time per successful order. An example being the customer survey run through Shopzilla which needs to be run only once per order and not everytime a customer views their order.  Though additional information for the customer could be included here, it may not be an ideal location and the location cannot be changed.

Where to place Google Analytics Conversion Tracking Scripts:

Please view the Related FAQ on Google Analytics Scripts

 

 

OLD ADMIN:

You can use external tracking scripts for extensive tracking capabilities such as entire site visitor tracking scripts, order tracking scripts that track conversions/visits. Below are some guidelines on where you can place your scripts:

Where to put General Tracking Scripts:

You can place general tracking scripts in the footer under Themes > [Active Theme] > Page Footer.

1. From your active menu navigate to Themes > [Active Themes]

Note: You can identify your active theme by locating the [Active] located after the name of the theme.

adding_scripts_1.png

2.  On the left theme navigation menu click on the Footer link

adding_scripts_2.png

3. Click on the Widgets link on the Footer menu

4.  Drag a Custom HTML widget from the Available Widgets area to the footer widgets area on the right.

adding_scripts_3.png

5. Click the Wrench ( left_sprites.png ) icon on your newly created Custom HTML widget.

6. Click the SWITCH TO HTML MODE button in the settings popup

adding_scripts_6.png

7. Paste your Script into the text editor

8. Click Save

adding_scripts_7.png

Where to put Order Specific Tracking scripts:

You can place order specific tracking scripts under Store > Store Settings - scroll to the area 'Integration Settings' and place the script with the script tags in this area:

The script will be added to the bottom of the ViewOrder page. 

The script can reference order based merge codes to populate order information.

Note:

  • This script will only be inserted and run one time per order and will be right when the order is initially placed.
  • The script will not be shown when a credit card is declined.

The primary purpose of this area is for use with external scripts that you may need to run only one time per successful order. An example being the customer survey run through Shopzilla which needs to be run only once per order and not everytime a customer views their order.  Though additional information for the customer could be included here, it may not be an ideal location and the location cannot be changed.

Where to place Google Analytics Conversion Tracking Scripts:

Please view the Related FAQ on Google Analytics Scripts