Loading ...
Sorry, an error occurred while loading the content.

2 SiteCatalyst instances on 1 page

Expand Messages
  • harshil
    Hi All, I am having this rather awkward query. Can we have 2 sitecatalyst instances on a single page? Can 2 SiteCatalyst tags co-exist and function correctly?
    Message 1 of 5 , May 10, 2013
    • 0 Attachment
      Hi All,

      I am having this rather awkward query.
      Can we have 2 sitecatalyst instances on a single page?
      Can 2 SiteCatalyst tags co-exist and function correctly?

      For e.g. in the below scenario, can both the tags function correctly?

      /*
      * SITECATALYST CODE-1
      */
      <!-- SiteCatalyst code version: H.25.4.
      Copyright 1996-2013 Adobe, Inc. All Rights Reserved
      More info available at http://www.omniture.com -->
      <script language="JavaScript" type="text/javascript" src="s_code.js"></script>
      <script language="JavaScript" type="text/javascript"><!--
      /* You may give each page an identifying name, server, and channel on
      the next lines. */

      s.pageName="Page X"

      s.eVar1=[Visitor's name]

      s.prop1="Conversion 1"


      /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
      var s_code=s.t();if(s_code)document.write(s_code)//--></script>
      <script language="JavaScript" type="text/javascript"><!--
      if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
      //--></script><noscript><img src="xxxxxx"
      height="1" width="1" border="0" alt="" /></noscript><!--/DO NOT REMOVE/-->
      <!-- End SiteCatalyst code version: H.25.4. -->



      /*
      * SITECATALYST CODE-2
      */
      <!-- SiteCatalyst code version: H.25.4.
      Copyright 1996-2013 Adobe, Inc. All Rights Reserved
      More info available at http://www.omniture.com -->
      <script language="JavaScript" type="text/javascript" src="s_code.js"></script>
      <script language="JavaScript" type="text/javascript"><!--
      /* You may give each page an identifying name, server, and channel on
      the next lines. */

      s.pageName="Page Y"

      s.eVar1=[Visitor's Country]

      s.prop1=conversion 2"


      /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
      var s_code=s.t();if(s_code)document.write(s_code)//--></script>
      <script language="JavaScript" type="text/javascript"><!--
      if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
      //--></script><noscript><img src="yyyyyy"
      height="1" width="1" border="0" alt="" /></noscript><!--/DO NOT REMOVE/-->
      <!-- End SiteCatalyst code version: H.25.4. -->
    • VaBeachKevin
      Yes they can, and I have done it many times, BUT you need to change the object for the second instance or the metrics will start to bleed into one another. So
      Message 2 of 5 , May 10, 2013
      • 0 Attachment
        Yes they can, and I have done it many times, BUT you need to change the object for the second instance or the metrics will start to bleed into one another. So if the first instance of the code is:

        s.pageName="Page X"
        s.eVar1=[Visitor's name]
        s.prop1="Conversion 1"

        the second needs to be something like:

        s2.pageName="Page X"
        s2.eVar1=[Visitor's name]
        s2.prop1="Conversion 1"


        Kevin Rogers
        @VaBeachKevin
        http://webanalyticsland.com




        --- In webanalytics@yahoogroups.com, "harshil" <harshilshah_2004@...> wrote:
        >
        > Hi All,
        >
        > I am having this rather awkward query.
        > Can we have 2 sitecatalyst instances on a single page?
        > Can 2 SiteCatalyst tags co-exist and function correctly?
        >
        > For e.g. in the below scenario, can both the tags function correctly?
        >
        > /*
        > * SITECATALYST CODE-1
        > */
        > <!-- SiteCatalyst code version: H.25.4.
        > Copyright 1996-2013 Adobe, Inc. All Rights Reserved
        > More info available at http://www.omniture.com -->
        > <script language="JavaScript" type="text/javascript" src="s_code.js"></script>
        > <script language="JavaScript" type="text/javascript"><!--
        > /* You may give each page an identifying name, server, and channel on
        > the next lines. */
        >
        > s.pageName="Page X"
        >
        > s.eVar1=[Visitor's name]
        >
        > s.prop1="Conversion 1"
        >
        >
        > /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
        > var s_code=s.t();if(s_code)document.write(s_code)//--></script>
        > <script language="JavaScript" type="text/javascript"><!--
        > if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
        > //--></script><noscript><img src="xxxxxx"
        > height="1" width="1" border="0" alt="" /></noscript><!--/DO NOT REMOVE/-->
        > <!-- End SiteCatalyst code version: H.25.4. -->
        >
        >
        >
        > /*
        > * SITECATALYST CODE-2
        > */
        > <!-- SiteCatalyst code version: H.25.4.
        > Copyright 1996-2013 Adobe, Inc. All Rights Reserved
        > More info available at http://www.omniture.com -->
        > <script language="JavaScript" type="text/javascript" src="s_code.js"></script>
        > <script language="JavaScript" type="text/javascript"><!--
        > /* You may give each page an identifying name, server, and channel on
        > the next lines. */
        >
        > s.pageName="Page Y"
        >
        > s.eVar1=[Visitor's Country]
        >
        > s.prop1=conversion 2"
        >
        >
        > /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
        > var s_code=s.t();if(s_code)document.write(s_code)//--></script>
        > <script language="JavaScript" type="text/javascript"><!--
        > if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
        > //--></script><noscript><img src="yyyyyy"
        > height="1" width="1" border="0" alt="" /></noscript><!--/DO NOT REMOVE/-->
        > <!-- End SiteCatalyst code version: H.25.4. -->
        >
      • harshil
        Thanks Kevin for the much helpful response. Couple of more things: First, can both instances have same report suite id? Second, Would this function similarly
        Message 3 of 5 , May 10, 2013
        • 0 Attachment
          Thanks Kevin for the much helpful response.

          Couple of more things:

          First,
          can both instances have same report suite id?

          Second,
          Would this function similarly for custom link tracking?
          For e.g. if I have following codes in onclick of a button,

          var s=s_gi('testing');
          s.linkTrackVars="events";
          s.linkTrackEvents="event6";
          s.events="event6";
          s.tl(true,'o','X Event');

          var s2=s_gi('testing');
          s2.linkTrackVars="events";
          s2.linkTrackEvents="event6";
          s2.events="event6";
          s2.tl(true,'o','Y Event');

          Would both the events be captured correctly? (Please note that report suite id is same).

          Regards,
          Harshil

          --- In webanalytics@yahoogroups.com, "VaBeachKevin" <vabeachkevin@...> wrote:
          >
          > Yes they can, and I have done it many times, BUT you need to change the object for the second instance or the metrics will start to bleed into one another. So if the first instance of the code is:
          >
          > s.pageName="Page X"
          > s.eVar1=[Visitor's name]
          > s.prop1="Conversion 1"
          >
          > the second needs to be something like:
          >
          > s2.pageName="Page X"
          > s2.eVar1=[Visitor's name]
          > s2.prop1="Conversion 1"
          >
          >
          > Kevin Rogers
          > @VaBeachKevin
          > http://webanalyticsland.com
          >
          >
          >
          >
          > --- In webanalytics@yahoogroups.com, "harshil" <harshilshah_2004@> wrote:
          > >
          > > Hi All,
          > >
          > > I am having this rather awkward query.
          > > Can we have 2 sitecatalyst instances on a single page?
          > > Can 2 SiteCatalyst tags co-exist and function correctly?
          > >
          > > For e.g. in the below scenario, can both the tags function correctly?
          > >
          > > /*
          > > * SITECATALYST CODE-1
          > > */
          > > <!-- SiteCatalyst code version: H.25.4.
          > > Copyright 1996-2013 Adobe, Inc. All Rights Reserved
          > > More info available at http://www.omniture.com -->
          > > <script language="JavaScript" type="text/javascript" src="s_code.js"></script>
          > > <script language="JavaScript" type="text/javascript"><!--
          > > /* You may give each page an identifying name, server, and channel on
          > > the next lines. */
          > >
          > > s.pageName="Page X"
          > >
          > > s.eVar1=[Visitor's name]
          > >
          > > s.prop1="Conversion 1"
          > >
          > >
          > > /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
          > > var s_code=s.t();if(s_code)document.write(s_code)//--></script>
          > > <script language="JavaScript" type="text/javascript"><!--
          > > if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
          > > //--></script><noscript><img src="xxxxxx"
          > > height="1" width="1" border="0" alt="" /></noscript><!--/DO NOT REMOVE/-->
          > > <!-- End SiteCatalyst code version: H.25.4. -->
          > >
          > >
          > >
          > > /*
          > > * SITECATALYST CODE-2
          > > */
          > > <!-- SiteCatalyst code version: H.25.4.
          > > Copyright 1996-2013 Adobe, Inc. All Rights Reserved
          > > More info available at http://www.omniture.com -->
          > > <script language="JavaScript" type="text/javascript" src="s_code.js"></script>
          > > <script language="JavaScript" type="text/javascript"><!--
          > > /* You may give each page an identifying name, server, and channel on
          > > the next lines. */
          > >
          > > s.pageName="Page Y"
          > >
          > > s.eVar1=[Visitor's Country]
          > >
          > > s.prop1=conversion 2"
          > >
          > >
          > > /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
          > > var s_code=s.t();if(s_code)document.write(s_code)//--></script>
          > > <script language="JavaScript" type="text/javascript"><!--
          > > if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
          > > //--></script><noscript><img src="yyyyyy"
          > > height="1" width="1" border="0" alt="" /></noscript><!--/DO NOT REMOVE/-->
          > > <!-- End SiteCatalyst code version: H.25.4. -->
          > >
          >
        • VaBeachKevin
          Sure they can both have the same report suite ID s, but if you were sending the same info in both requests then it wouldn t make much sense to do that. The
          Message 4 of 5 , May 10, 2013
          • 0 Attachment
            Sure they can both have the same report suite ID's, but if you were sending the same info in both requests then it wouldn't make much sense to do that. The only time you really need two instances of the code is if you needed different data for the same variable for different suites on the same page sent at the same time.

            The code you have there would work, but if you just need to set the one event twice then you could just as easy assign it a value of 2 and send it in once.


            Kevin Rogers
            @VaBeachKevin
            http://webanalyticsland.com

            --- In webanalytics@yahoogroups.com, "harshil" <harshilshah_2004@...> wrote:
            >
            > Thanks Kevin for the much helpful response.
            >
            > Couple of more things:
            >
            > First,
            > can both instances have same report suite id?
            >
            > Second,
            > Would this function similarly for custom link tracking?
            > For e.g. if I have following codes in onclick of a button,
            >
            > var s=s_gi('testing');
            > s.linkTrackVars="events";
            > s.linkTrackEvents="event6";
            > s.events="event6";
            > s.tl(true,'o','X Event');
            >
            > var s2=s_gi('testing');
            > s2.linkTrackVars="events";
            > s2.linkTrackEvents="event6";
            > s2.events="event6";
            > s2.tl(true,'o','Y Event');
            >
            > Would both the events be captured correctly? (Please note that report suite id is same).
            >
            > Regards,
            > Harshil
            >
            > --- In webanalytics@yahoogroups.com, "VaBeachKevin" <vabeachkevin@> wrote:
            > >
            > > Yes they can, and I have done it many times, BUT you need to change the object for the second instance or the metrics will start to bleed into one another. So if the first instance of the code is:
            > >
            > > s.pageName="Page X"
            > > s.eVar1=[Visitor's name]
            > > s.prop1="Conversion 1"
            > >
            > > the second needs to be something like:
            > >
            > > s2.pageName="Page X"
            > > s2.eVar1=[Visitor's name]
            > > s2.prop1="Conversion 1"
            > >
            > >
            > > Kevin Rogers
            > > @VaBeachKevin
            > > http://webanalyticsland.com
            > >
            > >
            > >
            > >
            > > --- In webanalytics@yahoogroups.com, "harshil" <harshilshah_2004@> wrote:
            > > >
            > > > Hi All,
            > > >
            > > > I am having this rather awkward query.
            > > > Can we have 2 sitecatalyst instances on a single page?
            > > > Can 2 SiteCatalyst tags co-exist and function correctly?
            > > >
            > > > For e.g. in the below scenario, can both the tags function correctly?
            > > >
            > > > /*
            > > > * SITECATALYST CODE-1
            > > > */
            > > > <!-- SiteCatalyst code version: H.25.4.
            > > > Copyright 1996-2013 Adobe, Inc. All Rights Reserved
            > > > More info available at http://www.omniture.com -->
            > > > <script language="JavaScript" type="text/javascript" src="s_code.js"></script>
            > > > <script language="JavaScript" type="text/javascript"><!--
            > > > /* You may give each page an identifying name, server, and channel on
            > > > the next lines. */
            > > >
            > > > s.pageName="Page X"
            > > >
            > > > s.eVar1=[Visitor's name]
            > > >
            > > > s.prop1="Conversion 1"
            > > >
            > > >
            > > > /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
            > > > var s_code=s.t();if(s_code)document.write(s_code)//--></script>
            > > > <script language="JavaScript" type="text/javascript"><!--
            > > > if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
            > > > //--></script><noscript><img src="xxxxxx"
            > > > height="1" width="1" border="0" alt="" /></noscript><!--/DO NOT REMOVE/-->
            > > > <!-- End SiteCatalyst code version: H.25.4. -->
            > > >
            > > >
            > > >
            > > > /*
            > > > * SITECATALYST CODE-2
            > > > */
            > > > <!-- SiteCatalyst code version: H.25.4.
            > > > Copyright 1996-2013 Adobe, Inc. All Rights Reserved
            > > > More info available at http://www.omniture.com -->
            > > > <script language="JavaScript" type="text/javascript" src="s_code.js"></script>
            > > > <script language="JavaScript" type="text/javascript"><!--
            > > > /* You may give each page an identifying name, server, and channel on
            > > > the next lines. */
            > > >
            > > > s.pageName="Page Y"
            > > >
            > > > s.eVar1=[Visitor's Country]
            > > >
            > > > s.prop1=conversion 2"
            > > >
            > > >
            > > > /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
            > > > var s_code=s.t();if(s_code)document.write(s_code)//--></script>
            > > > <script language="JavaScript" type="text/javascript"><!--
            > > > if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
            > > > //--></script><noscript><img src="yyyyyy"
            > > > height="1" width="1" border="0" alt="" /></noscript><!--/DO NOT REMOVE/-->
            > > > <!-- End SiteCatalyst code version: H.25.4. -->
            > > >
            > >
            >
          • harshil
            Thanks Kevin. That solves all my doubts regarding this. Best Regards, Harshil
            Message 5 of 5 , May 12, 2013
            • 0 Attachment
              Thanks Kevin.

              That solves all my doubts regarding this.

              Best Regards,
              Harshil

              --- In webanalytics@yahoogroups.com, "VaBeachKevin" <vabeachkevin@...> wrote:
              >
              > Sure they can both have the same report suite ID's, but if you were sending the same info in both requests then it wouldn't make much sense to do that. The only time you really need two instances of the code is if you needed different data for the same variable for different suites on the same page sent at the same time.
              >
              > The code you have there would work, but if you just need to set the one event twice then you could just as easy assign it a value of 2 and send it in once.
              >
              >
              > Kevin Rogers
              > @VaBeachKevin
              > http://webanalyticsland.com
              >
              > --- In webanalytics@yahoogroups.com, "harshil" <harshilshah_2004@> wrote:
              > >
              > > Thanks Kevin for the much helpful response.
              > >
              > > Couple of more things:
              > >
              > > First,
              > > can both instances have same report suite id?
              > >
              > > Second,
              > > Would this function similarly for custom link tracking?
              > > For e.g. if I have following codes in onclick of a button,
              > >
              > > var s=s_gi('testing');
              > > s.linkTrackVars="events";
              > > s.linkTrackEvents="event6";
              > > s.events="event6";
              > > s.tl(true,'o','X Event');
              > >
              > > var s2=s_gi('testing');
              > > s2.linkTrackVars="events";
              > > s2.linkTrackEvents="event6";
              > > s2.events="event6";
              > > s2.tl(true,'o','Y Event');
              > >
              > > Would both the events be captured correctly? (Please note that report suite id is same).
              > >
              > > Regards,
              > > Harshil
              > >
              > > --- In webanalytics@yahoogroups.com, "VaBeachKevin" <vabeachkevin@> wrote:
              > > >
              > > > Yes they can, and I have done it many times, BUT you need to change the object for the second instance or the metrics will start to bleed into one another. So if the first instance of the code is:
              > > >
              > > > s.pageName="Page X"
              > > > s.eVar1=[Visitor's name]
              > > > s.prop1="Conversion 1"
              > > >
              > > > the second needs to be something like:
              > > >
              > > > s2.pageName="Page X"
              > > > s2.eVar1=[Visitor's name]
              > > > s2.prop1="Conversion 1"
              > > >
              > > >
              > > > Kevin Rogers
              > > > @VaBeachKevin
              > > > http://webanalyticsland.com
              > > >
              > > >
              > > >
              > > >
              > > > --- In webanalytics@yahoogroups.com, "harshil" <harshilshah_2004@> wrote:
              > > > >
              > > > > Hi All,
              > > > >
              > > > > I am having this rather awkward query.
              > > > > Can we have 2 sitecatalyst instances on a single page?
              > > > > Can 2 SiteCatalyst tags co-exist and function correctly?
              > > > >
              > > > > For e.g. in the below scenario, can both the tags function correctly?
              > > > >
              > > > > /*
              > > > > * SITECATALYST CODE-1
              > > > > */
              > > > > <!-- SiteCatalyst code version: H.25.4.
              > > > > Copyright 1996-2013 Adobe, Inc. All Rights Reserved
              > > > > More info available at http://www.omniture.com -->
              > > > > <script language="JavaScript" type="text/javascript" src="s_code.js"></script>
              > > > > <script language="JavaScript" type="text/javascript"><!--
              > > > > /* You may give each page an identifying name, server, and channel on
              > > > > the next lines. */
              > > > >
              > > > > s.pageName="Page X"
              > > > >
              > > > > s.eVar1=[Visitor's name]
              > > > >
              > > > > s.prop1="Conversion 1"
              > > > >
              > > > >
              > > > > /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
              > > > > var s_code=s.t();if(s_code)document.write(s_code)//--></script>
              > > > > <script language="JavaScript" type="text/javascript"><!--
              > > > > if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
              > > > > //--></script><noscript><img src="xxxxxx"
              > > > > height="1" width="1" border="0" alt="" /></noscript><!--/DO NOT REMOVE/-->
              > > > > <!-- End SiteCatalyst code version: H.25.4. -->
              > > > >
              > > > >
              > > > >
              > > > > /*
              > > > > * SITECATALYST CODE-2
              > > > > */
              > > > > <!-- SiteCatalyst code version: H.25.4.
              > > > > Copyright 1996-2013 Adobe, Inc. All Rights Reserved
              > > > > More info available at http://www.omniture.com -->
              > > > > <script language="JavaScript" type="text/javascript" src="s_code.js"></script>
              > > > > <script language="JavaScript" type="text/javascript"><!--
              > > > > /* You may give each page an identifying name, server, and channel on
              > > > > the next lines. */
              > > > >
              > > > > s.pageName="Page Y"
              > > > >
              > > > > s.eVar1=[Visitor's Country]
              > > > >
              > > > > s.prop1=conversion 2"
              > > > >
              > > > >
              > > > > /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
              > > > > var s_code=s.t();if(s_code)document.write(s_code)//--></script>
              > > > > <script language="JavaScript" type="text/javascript"><!--
              > > > > if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
              > > > > //--></script><noscript><img src="yyyyyy"
              > > > > height="1" width="1" border="0" alt="" /></noscript><!--/DO NOT REMOVE/-->
              > > > > <!-- End SiteCatalyst code version: H.25.4. -->
              > > > >
              > > >
              > >
              >
            Your message has been successfully submitted and would be delivered to recipients shortly.