Where do these scripts come from?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Where do these scripts come from?

Post by William_firefold » Wed Jun 17, 2009 7:12 am

On our receipt page, there is a google script which has an error in it, but I cant find where the script comes from to fix it. It is on line 45 for us, which puts it ABOVE the header. Here is the code and some of the surrounding code as a point of reference.

Code: Select all

<script src="/WebResource.axd?d=AO_OAkNBGQZbd4nS1DWllsfsevly-zjZjMcArQ_0OwV9jOLGTDuFxsQm81cuSuiX0&t=633498351600000000" type="text/javascript"></script><script type="text/javascript">var pageTracker = _gat._getTracker('UA-403577-1');pageTracker._trackPageview();pageTracker._addTrans('463363','FireFold.com','4.0500','0.2600','0','durham,'NC','CommerceBuilder.Shipping.Country');pageTracker._addItem('463363','COAX-WINDOW','8 inch Flat Coax for Windows','430','3.7900','1');pageTracker._trackTrans();</script>

<script src="/ScriptResource.axd?d=2mg2WkjbUaqSTc7fbpXnguCuw4torE0lec3dKrd0rjQzF_s5E_n-DXmyQtp69pFG7zMnw6enrXOk2geicGNMqjEzN5eA4SRRaXP00-yW4bA1&t=633577726107449362" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=2mg2WkjbUaqSTc7fbpXnguCuw4torE0lec3dKrd0rjQzF_s5E_n-DXmyQtp69pFG7zMnw6enrXOk2geicGNMqmxCqBHVuCerGMVaivpMefs1&t=633577726107449362" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=OMCEWA6GH0P8sQWD3u4rtdlZHycpGjdJkJi-fLcbeiIaGELtwfR0RReOqafmf1wT0&t=633498351600000000" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=OMCEWA6GH0P8sQWD3u4rtSnOS3HaXVG08g79sxo5xWnE8mma9TTqM76d7pmakIKe0&t=633498351600000000" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=OMCEWA6GH0P8sQWD3u4rtVHVR9GCvxZaoGI5ze8W0BO6WrNbPGRhX2FgJmx4K_pb0&t=633498351600000000" type="text/javascript"></script>
    <script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager1', document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tctl00$wpm$ReceiptPage$ctl07$OrderNotesAjax'], [], [], 90);
//]]>
</script>
I cant figure out where all this is coming from, does anyone here know? Thanks

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Where do these scripts come from?

Post by mazhar » Wed Jun 17, 2009 7:20 am

Do you have footer with GoogleAnalytics on your receipt page or using GoogleAnalyticsWidget control of conlib in some scriptlet. This information is being rendered by GoogleAnalyticsWidget.

Read more about page tracking from here
http://help.ablecommerce.com/mergedProj ... acking.htm

User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Re: Where do these scripts come from?

Post by William_firefold » Wed Jun 17, 2009 8:35 am

I checked out the google widget, and that has different code than the one in question. Our widget loads in the scriptlet.master file and loads towards the end of the page. I checked out all of our layout scriptlets and there was nothing in there calling it.
Do you know where the other scripts are getting called from? The ones starting with: <script src="/ScriptResource.axd?d=

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Where do these scripts come from?

Post by mazhar » Wed Jun 17, 2009 8:39 am

Here is a post where you asked about a very similar script
viewtopic.php?f=42&t=11252
and I provided you a sample. So it seems that you are using your custom script some where in code.

User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Re: Where do these scripts come from?

Post by William_firefold » Wed Jun 17, 2009 8:52 am

Now I feel stupid. Thanks for the help. We have an analytics mess on our receipt page, and I couldnt tell which script was which. Sorry, and thanks again.

Post Reply