Tracking Code

General ShopSite user discussion

Tracking Code

Postby Richard » Thu Nov 17, 2005 4:59 pm

We need to add some tracking code to shopsite pages. The requirement is:
Add the code after the <head>, <meta> tags and before the </head> tag on
each page you are planning to track.
Now the last meta tag (for our page design) before the </head>,
is "<meta name="generator" content="ShopSite Pro 8.0.1 Text 3 On Left
Side -C code">"

We can't see any easy way to add this globally to published pages without
perhaps a custom page. Perhaps we are wrong. Clearly the global page header
fills in below </head>



Thanks
Richard
Richard
 

Re: Tracking Code

Postby jim » Thu Nov 17, 2005 5:13 pm

You might try this solution.
http://support.shopsite.com/kbase/view_ ... nID=S03786

Jim

Richard wrote:
We need to add some tracking code to shopsite pages. The requirement is:
Add the code after the <head>, <meta> tags and before the </head> tag on
each page you are planning to track.
Now the last meta tag (for our page design) before the </head>,
is "<meta name="generator" content="ShopSite Pro 8.0.1 Text 3 On Left
Side -C code">"

We can't see any easy way to add this globally to published pages without
perhaps a custom page. Perhaps we are wrong. Clearly the global page header
fills in below </head



Thanks
Richard


jim
 

Re: Tracking Code

Postby Richard » Thu Nov 17, 2005 5:26 pm

Jim,
OK will try - sorry I posted this message twice it seems. For some reason my
software did not show first posting - Only after I unsubscribed and
re-subscribed did it show.
RR
Richard
 

Re: Tracking Code

Postby Richard » Fri Nov 18, 2005 1:43 pm

Jim,
I had a good look at S03786.
Re the workaround mentioned there...
As you know Shopsite requires you to add simple text to the Meta desciption
field and then the software adds the HTML formatting upon saving/publishing.
We do this for all of our products
The problem is that shopsite thinks that the entire contents (the actual
meta description AND the script) is the meta description and closes the
whole lot with a ">
Even if I add "> at the end of the actual meta description (to close it off)
shopsite adds another "> at the end of the script
Maybe I am missing something but I don't see a way to seperate the actual
meta description with the script.
You can see this here and look at the source: (you can see the xtra ">
after </script> )
http://www.shoplite.com/sale6.htm
Richard
Richard
 

Re: Tracking Code

Postby Webmaster - Dave's Discou » Fri Nov 18, 2005 2:06 pm

Fear not, it can be done. You just need to make sure you close the leading
meta tag, insert your tracking code, then make a throwaway meta tag to come
after. Like this:

*****************************
Daves Discount Motors">

<script src="http://www.google-analytics.com/urchin.js"
type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "-";
urchinTracker();
</script>

<meta name="shopsitecloser" content="123abc

***********************
The Daves Discount Motors"> completes the meta description tag, then the
tracking code is inserted, and then a throwaway meta tag is made. When
shopsite parses the field, it adds the "> to close this throwaway tag.

Not elegant, but it works. IMO, the current implementation is 100% horrible.
Shopsite should not be adding partial tag content or hard-coding tag
closings. This field should be available for me to put currect, complete
HTML into for use between the <head> and </head> tags, not to have to
generate garbage just to get things to work.

"Richard" <rruda@shoplite.com> wrote in message
news:dllate$427$1@eval.shopsite.com...
Jim,
I had a good look at S03786.
Re the workaround mentioned there...
As you know Shopsite requires you to add simple text to the Meta
desciption field and then the software adds the HTML formatting upon
saving/publishing. We do this for all of our products
The problem is that shopsite thinks that the entire contents (the actual
meta description AND the script) is the meta description and closes the
whole lot with a "
Even if I add "> at the end of the actual meta description (to close it
off) shopsite adds another "> at the end of the script
Maybe I am missing something but I don't see a way to seperate the actual
meta description with the script.
You can see this here and look at the source: (you can see the xtra "
after </script> )
http://www.shoplite.com/sale6.htm
Richard
Webmaster - Dave's Discou
 

Re: Tracking Code

Postby Richard » Fri Nov 18, 2005 2:13 pm

Ah hah,
Ok Dave (Dave?) - I'll try it a bit later. Appreciate your input.
RR
Richard
 


Return to User Forum

Who is online

Users browsing this forum: No registered users and 59 guests

cron