Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter jacobrossdev

    (@jacobrossdev)

    Also, right out of the box I get this error message after activating my plugin after implementing the code from the dummy plugin:

    Notice: Undefined offset: -1 in D:\xampp\htdocs\dev\woocommerce\wp-content\plugins\woocommerce-product-table\lib\wp-package-updater\class-wp-package-updater.php on line 97

    Thread Starter jacobrossdev

    (@jacobrossdev)

    Hi Alex,

    It’s strange, on our plugin there is no code to manage specific tracking scripts like Linkedin or Hotjar and i also checked the source code of your website but our plugin seems disabled.

    Yes there is, these are entries pulled from the client’s options table made by your plugin called TCM_Snippet that have exactly hotjar and linkedin tracking codes. The following are just two, of 6 that were running on my client’s site and it caused a huge TTFB.

    a:36:{s:6:"active";i:1;s:9:"trackMode";i:0;s:9:"trackPage";i:0;s:2:"id";s:1:"5";s:4:"name";s:35:"Google Tag Manager + Hotjar Heatmap";s:4:"code";s:911:"<!-- Google Tag Manager -->
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','xxxxxxxxxxx');</script>
    
    <!-- Hotjar Tracking Code for www.localhost/dev/maximo -->
    <script>
        (function(h,o,t,j,a,r){
            h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
            h._hjSettings={hjid:839365,hjsv:6};
            a=o.getElementsByTagName('head')[0];
            r=o.createElement('script');r.async=1;
            r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
            a.appendChild(r);
        })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
    </script>
    a:36:{s:6:"active";i:1;s:9:"trackMode";i:0;s:9:"trackPage";i:0;s:2:"id";s:1:"2";s:4:"name";s:22:"LinkedIn Tracking Code";s:4:"code";s:778:"<!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=xxxxxxxxxxx"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->
    
    <script type="text/javascript">
    _linkedin_data_partner_id = "234817";
    </script><script type="text/javascript">
    (function(){var s = document.getElementsByTagName("script")[0];
    var b = document.createElement("script");
    b.type = "text/javascript";b.async = true;
    b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js";
    s.parentNode.insertBefore(b, s);})();
    </script>
    <noscript>
    <img height="1" width="1" style="display:none;" alt="" src="https://dc.ads.linkedin.com/collect/?pid=234817&fmt=gif" />
    </noscript>";s:5:"order";s:4:"1000";s:8:"position";i:1;s:23:"includeEverywhereActive";i:1;s:23:"includeCategoriesActive";i:0;s:17:"includeTagsActive";i:0;s:22:"exceptCategoriesActive";i:0;s:16:"exceptTagsActive";i:0;s:10:"deviceType";a:1:{i:0;s:3:"all";}s:30:"includePostsOfType_page_Active";i:0;s:23:"includePostsOfType_page";a:1:{i:0;s:2:"-1";}s:29:"exceptPostsOfType_page_Active";i:0;s:30:"includePostsOfType_post_Active";i:0;s:23:"includePostsOfType_post";a:1:{i:0;s:2:"-1";}s:29:"exceptPostsOfType_post_Active";i:0;s:10:"codesCount";i:3;s:17:"includeCategories";a:0:{}s:11:"includeTags";a:0:{}s:16:"exceptCategories";a:0:{}s:10:"exceptTags";a:0:{}s:22:"exceptPostsOfType_page";a:0:{}s:22:"exceptPostsOfType_post";a:0:{}s:21:"CTC_10002_ProductsIds";a:0:{}s:23:"CTC_10002_CategoriesIds";a:0:{}s:17:"CTC_10002_TagsIds";a:0:{}s:21:"CTC_10001_ProductsIds";a:0:{}s:23:"CTC_10001_CategoriesIds";a:0:{}s:17:"CTC_10001_TagsIds";a:0:{}s:21:"CTC_10003_ProductsIds";a:0:{}s:23:"CTC_10003_CategoriesIds";a:0:{}s:17:"CTC_10003_TagsIds";a:0:{}}
    Thread Starter jacobrossdev

    (@jacobrossdev)

    Yes. The problem didn’t persist after I installed the premium version of this plugin.

Viewing 3 replies - 16 through 18 (of 18 total)