Forum Replies Created

Viewing 15 replies - 1 through 15 (of 72 total)
  • Bub

    (@jdenning47)

    TNX solved my problem too

    Thread Starter Bub

    (@jdenning47)

    Thanks for your help. I will go with your suggestions above.

    Thread Starter Bub

    (@jdenning47)

    I just disconnected GTM from Site Kit and manually inserted GTM-AMP snippets as shown below. (I currently am using https://github.com/woocommerce/theme-customisations to insert these into functions.php within the storefront/boutique themes.)

    /** Add AMP code for Google Tag Manager after header*/
    add_action ('wp_head', 'add_google_tag_manager_for_AMP_after_header');
    function add_google_tag_manager_for_AMP_after_header() {
    ?>
    <!-- AMP Analytics --><script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
    <?php
    }
     
    /** Add AMP code for Google Analytics Tag after opening body tag */
    add_action( 'wp_body_open', 'add_google_tag_manager_for_AMP_after_body_tag' );
    function add_google_tag_manager_for_AMP_after_body_tag() {
    ?>
    <amp-analytics config="https://www.googletagmanager.com/amp.json?id=GTM-xxxxxxx&gtm.url=SOURCE_URL" data-credentials="include"></amp-analytics>
    <?php
    }

    I am using the previously mentioned gtag tag code used within the plugin analytics tab and am seeing in Google Analytics:
    Event Category: ButtonClick with Event Action: clicking on button

    {
        "vars": {
            "gtag_id": "UA-XXXXXXXXX-X",
            "config": {
                "UA- XXXXXXXXX-X ": { "groups": "default" }
            }
        },
        "triggers": {
            "button": {
                "selector": "#the-button",
                "on": "click",
                "vars": {
                    "event_category": "ButtonClick",
                    "event_name": "clicking on button",
                    "event_label": "my button",
                    "method": "Google"
                    }
                }
        }  
    }

    NEXT:
    I remove the gtag code snippet above from the AMP plugin Analytics and again run the following from Google Tag Manager:
    Tag Configuration
    Tag Type: Google Analytics: Universal Analytics Google Marketing Platform
    Tracking ID: UA- XXXXXXXXX-X
    Track Type: Event
    Event Tracking Parameters
    Category: ButtonClick
    Action: click
    Label: button left
    Value: 1
    Non-Interaction Hit: True

    Trigger Configuration
    Trigger Type: Click
    CSS Selector (specific elements this click applies to): #the-button
    This trigger fires on: All Pages

    After clicking on the button Google Analytics Realtime Events shows:
    An Event Spike but indicates no Active User along with no Event Action or Active Users data
    After activating a standard All Pages tag and clicking the button I get an Active User and an event spike but still no Event Action or Active Users data.

    Thread Starter Bub

    (@jdenning47)

    I have experimented with

    • Google Site Kit with GTM. Tag Fires no Event Cat. or Event Act..
    • Google Site Kit without GTM enabled and inserted the AMP and GTM snippets. Tag Fires no Event Cat. or Event Act..
    • Google Site Kit without GTM enabled and inserted tag code into the Analytics block within the plugin tab Tag Fires and loads Event Cat. and Event Act..
    • {
          "vars": {
              "gtag_id": "UA-109333845-9",
              "config": {
                  "UA-109333845-9": { "groups": "default" }
              }
          },
          "triggers": {
              "button": {
                  "selector": "#the-button",
                  "on": "click",
                  "vars": {
                      "event_category": "ButtonClick",
                      "event_name": "clicking on button",
                      "event_label": "my button",
                      "method": "Google"
                      }
                  }
          }  
      }
      

      This is what the not populating tag looks like in GTM
      Tag Configuration
      Tag Type

      Google Analytics: Universal Analytics
      Google Marketing Platform
      Tracking ID
      UA-xxxxxxxxx-x
      Track Type

      Event
      Event Tracking Parameters
      Category
      ButtonClick
      Action
      click
      Label
      button left
      Value
      1
      Non-Interaction Hit

      True

      ____________
      Trigger Configuration
      Trigger Type
      Click
      CSS Selector (specific elements this click applies to)
      #the-button
      This trigger fires on
      All Pages

    Thread Starter Bub

    (@jdenning47)

    I had thought I tried that and several other code combinations but trying this now using the screen shot example it works as expected. I had been doing a lot of hacking and must have done something not quite correctly. Thanks as now I don’t need to add the code to functions.php anymore.
    NEXT: Can you give me instructions/example and a screen shot for what to do for Google TAG MANAGER too?
    I have been trying what was recommended but Tag Assistant won’t connect. The code shows up in the page source so I must assume I either have some forgotten code artifacts from my previous hacking attempts or I am just using the wrong code. HELP!! and Thanks!!

    • This reply was modified 3 years, 5 months ago by Bub.
    Thread Starter Bub

    (@jdenning47)

    Works using Chaps Theme Child – Thanks.

    • This reply was modified 3 years, 6 months ago by Bub.
    Bub

    (@jdenning47)

    breaks menu using woocommerce boutique

    Thread Starter Bub

    (@jdenning47)

    Try my test site: https://zingreview.com them https://zingreview.com/wp-login/ and then https://zingreview.com/login/ finally https://zingreview.com/login-to-zing/ Is this the expected behavior? Again, the plugin works perfectly for what I need if I insert a redirect in my .htaccess file which is currently remove to allow you to see what I describe above. Thanks for your efforts. Also https://www.plateformewpdigital.fr does not seem to work. You can contact me directly at https://denningsoftware.com

    • This reply was modified 5 years, 7 months ago by Bub.
    • This reply was modified 5 years, 7 months ago by Bub.
    Thread Starter Bub

    (@jdenning47)

    I did using a redirect in .htaccess (Redirect 301 /login/ /404/) but was hoping there was a way to do this in your plugin. Otherwise – 5 stars!

    Thread Starter Bub

    (@jdenning47)

    Thanks and sorry for the time lag…. Yes, when the free Yoast SEO plugin is disabled, Health Check is happy. When I re-enable Yoast all is still OK but since this was a cron error I would expect that until wpseo-reindex-links is scheduled again, I won’t see this error.

    • This reply was modified 6 years, 6 months ago by Bub.
    Bub

    (@jdenning47)

    Version 3.1.2 – Still fails!!! Will have to create my own solution as we can’t have a “Health Check” fail in WP_Cron! “The loopback request to your site failed, this may prevent WP_Cron from working, along with theme and plugin editors. Error encountered: (0) cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received.” Your credibility is at risk here!!!

    • This reply was modified 6 years, 7 months ago by Bub.
    • This reply was modified 6 years, 7 months ago by Bub.
    Bub

    (@jdenning47)

    KaBoom!!!!! Temporary repair. FTP old version (which I had a copy of) over the top of the new in wp-content/plugins and then wait for author to repair. If you straight up delete the broken one you will loose your snippets.

    • This reply was modified 6 years, 8 months ago by Bub.
    • This reply was modified 6 years, 8 months ago by Bub.
    Bub

    (@jdenning47)

    Still waiting… This prevents WP_Cron from working as well as it blocks funtion.php editor.

    Bub

    (@jdenning47)

    It was a pagination issue for version 0.75 in list-category-posts.php lcp-paginator.php lcp-widget.php primarily in for the widget.

    Bub

    (@jdenning47)

    So I was correct. It was a pagination issue in list-category-posts.php lcp-paginator.php lcp-widget.php primarily in for the widget. Thanks for the quick repair.

Viewing 15 replies - 1 through 15 (of 72 total)