Announcement

Collapse
No announcement yet.

Alternate CTGY Display page - links not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Alternate CTGY Display page - links not working

    Using Levels and I created an Alternate CTGY Display page. I simply setup the new CTGY page template assigning all the same page items and copy/pasting the same template code.

    However, the category links are working (to take me to the PROD page). The Quickview doesn't work.

    I'm guessing there is some JS that is not detecting this as the CTGY and causing the issue, but I can't figure it out.

    Thoughts?

    -Kevin
    Web Design and Development, Internet Marketing
    Lancer Media, Inc.

    #2
    UPDATE - so after forcing the <body id="js-CTGY on the alternate page template, Quickview is working again. But clicking on any product links results in nothing happening. No errors in console either.

    -Kevin
    Web Design and Development, Internet Marketing
    Lancer Media, Inc.

    Comment


      #3
      Hi Kevin,

      Can you post a link to the page in question?
      Matt Zimmermann

      Miva Web Developer
      Alchemy Web Development
      https://www.alchemywebdev.com
      Site Development - Maintenance - Consultation

      Miva Certified Developer
      Miva Professional Developer

      https://www.dev4web.net | Twitter

      Comment


        #4
        Originally posted by Matt Zimmermann View Post
        Hi Kevin,

        Can you post a link to the page in question?
        Can I PM you the link? Don't want it posted here.

        -Kevin
        Web Design and Development, Internet Marketing
        Lancer Media, Inc.

        Comment


          #5
          Sure thing.
          Matt Zimmermann

          Miva Web Developer
          Alchemy Web Development
          https://www.alchemywebdev.com
          Site Development - Maintenance - Consultation

          Miva Certified Developer
          Miva Professional Developer

          https://www.dev4web.net | Twitter

          Comment


            #6
            Originally posted by Matt Zimmermann View Post
            Sure thing.
            Sent the URL via PM. Thanks again!

            -Kevin
            Web Design and Development, Internet Marketing
            Lancer Media, Inc.

            Comment


              #7
              Figured I'd update this post with what I found so far.

              Ok, so I'm wondering if this has something to do with GA tracking. Here's what I did:

              I loaded this category using the standard CTGY template and compared it's source to the same category using the new template. The only real difference was at the bottom for GA tracking.

              On the category source using the default CTGY template I saw this code: NOTE, the GA id is fake while I'm in dev. Also I changed the product IDs since this is posted publicly.

              Code:
              <script>
              (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
              (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
              m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
              })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
              
              ga('create', '99999999', 'auto');
              
              var mvga_basketitems = [
              
              ];
              
              var mvga_orderitems = [
              
              ];
              
              var mvga_productlist = [];
              
              var mvga_tracker = new MVGA_Tracker( '', 'cat1', '', '', mvga_basketitems, mvga_orderitems );
              
              
                  ga( 'require', 'ec' );
              
              
                  ga( 'ec:addImpression',
                  {
                      'id'        : 'prodid1',
                      'name'        : 'name1',
                      'category'    : 'cat1',
                      'list'        : 'Category Listing',
                      'position'    : '5'
                  } ); 
              
                  mvga_productlist.push( 
                  {
                      'code'        : 'prodid1',
                      'name'        : 'name1',
                      'position'    : '5'
                  } );
              
                  ga( 'ec:addImpression',
                  {
                      'id'        : 'prodid2',
                      'name'        : 'name2',
                      'category'    : 'cat1',
                      'list'        : 'Category Listing',
                      'position'    : '7'
                  } ); 
              
                  mvga_productlist.push( 
                  {
                      'code'        : 'prodid2',
                      'name'        : 'name2',
                      'position'    : '7'
                  } );
              
                  ga( 'ec:addImpression',
                  {
                      'id'        : 'prodid3',
                      'name'        : 'name3',
                      'category'    : 'cat1',
                      'list'        : 'Category Listing',
                      'position'    : '12'
                  } ); 
              
                  mvga_productlist.push( 
                  {
                      'code'        : 'prodid3',
                      'name'        : 'name3',
                      'position'    : '12'
                  } );
              
                  ga( 'ec:addImpression',
                  {
                      'id'        : 'prodid4',
                      'name'        : 'name4',
                      'category'    : 'cat1',
                      'list'        : 'Category Listing',
                      'position'    : '9'
                  } ); 
              
                  mvga_productlist.push( 
                  {
                      'code'        : 'prodid4',
                      'name'        : 'name4',
                      'position'    : '9'
                  } );
              
                  ga( 'ec:addImpression',
                  {
                      'id'        : 'prodid5',
                      'name'        : 'name5',
                      'category'    : 'cat1',
                      'list'        : 'Category Listing',
                      'position'    : '93'
                  } ); 
              
                  mvga_productlist.push( 
                  {
                      'code'        : 'prodid5',
                      'name'        : 'name5',
                      'position'    : '93'
                  } );
              
                  ga( 'ec:addImpression',
                  {
                      'id'        : 'prodid6',
                      'name'        : 'name6',
                      'category'    : 'cat1',
                      'list'        : 'Category Listing',
                      'position'    : '9176'
                  } ); 
              
                  mvga_productlist.push( 
                  {
                      'code'        : 'prodid6',
                      'name'        : 'name6',
                      'position'    : '9176'
                  } );
              
              
              
              ga( 'send', 'pageview', { 'page':'\/glasses\/Rx.html' } );
              
              
              </script>
              </body>
              </html>
              On the category source using my new template it shows this:

              Code:
              <script>
              (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
              (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
              m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
              })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
              
              ga('create', '99999999', 'auto');
              
              var mvga_basketitems = [
              
              ];
              
              var mvga_orderitems = [
              
              ];
              
              var mvga_productlist = [];
              
              var mvga_tracker = new MVGA_Tracker( '', 'cat1', '', '', mvga_basketitems, mvga_orderitems );
              
              
              
              ga( 'send', 'pageview', { 'page':'\/glasses\/Rx.html' } );
              
              
              </script>
              </body>
              </html>
              It was missing that code. No idea why, so I decided to go into the GA settings in Miva. The settings were set to: Universal Enhanced Ecommerce. When I switched it to just Universal, the page links started working again.

              Thoughts?

              -Kevin
              Web Design and Development, Internet Marketing
              Lancer Media, Inc.

              Comment


                #8
                Any additional thoughts on this? I just ran into this same problem. The GA code works fine with the stock CTGY, but my custom category templates are giving me hyperlink problems. Is there a fix where I can keep Universal Enhanced Ecommerce?
                Doug
                Using Miva Merchant since 2004
                StoreSMART.com

                Comment


                  #9
                  I'd first check to be sure that ALL items on your CTGY page are also included in your new custom page. This is usually the problem with custom pages.
                  Bruce Golub
                  Phosphor Media - "Your Success is our Business"

                  Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                  phosphormedia.com

                  Comment


                    #10
                    All the items are the same between CTGY and my custom page.
                    Doug
                    Using Miva Merchant since 2004
                    StoreSMART.com

                    Comment

                    Working...
                    X