hidden heading

  • Threads
  • Categories
  • Users
  • forum
  • group
  • search

agkhy

  • Moderator
  • Mod
  • Joined April 10, 2023
  • message Posts
  • forum Threads
  • favorite Followers
  • favorite_border Follows
  • person_outline Details

agkhy has posted 75 messages.

  • See post chevron_right
    agkhy
    Mod
    GA4 Events for English and French Identifying Conversions Sept. 21, 2023, 11:24 a.m.

    If you wish to have two separate conversions, then indeed, this is the approach you should follow.

    Alternatively, if you'd like to consolidate them (although it's a bit intricate), here's a solution:

    Firstly, create a custom event for your French page as follows:
    - Event name: pageview
    - Page location: URL of your French page

    Repeat the same process for your English page:
    - Event name: pageview
    - Page location: URL of your English page

    Next, create an audience consisting of individuals who trigger either one of these events. You can configure it so that anyone entering this audience triggers an event.

    This event will essentially represent the combined result of both your French and English events.

    There may be a simpler solution available, but unfortunately, I'm not aware of it at the moment!

  • See post chevron_right
    agkhy
    Mod
    GA4 Ecommerce Transactions Not Being Tracked Identifying Conversions Sept. 21, 2023, 11:20 a.m.

    How did you go about migrating UA e-commerce to GA4? Did you establish a new dataLayer for GA4 on your website, or did you continue using the same dataLayer that was set up for UA through Google Tag Manager (GTM)?

    For reference, you can consult the developer guide at this link: developers.google.com/tag-manager/ecommerce-ga4

    I'm uncertain about how you're currently tracking "place_an_order," but are you interested in monitoring users who visit a specific page?

    Each "page_view" event inherently includes event parameters like "page_location" and "page_referrer," so you should configure it as follows:

    • Event name: equals "page_view"
    • Page location: equals the URL of the PARTICULAR PAGE you want to track.
  • See post chevron_right
    agkhy
    Mod
    Where can I see the total clicks and loads of my tags coming from Tag Manager? Identifying Conversions Sept. 21, 2023, 11:10 a.m.

    As you've observed, Google Analytics only shows data for the Events that were triggered and sent to GA. GA doesn't provide native reporting for the activity within your GTM Container, and GTM itself doesn't offer such reporting either. To obtain this information, you'll need to create separate Events or add Event parameters to existing Events for all the activities you want to track. For instance, I've established a "gtm_event" Dimension and assigned it the value of "{{Event}}" for every GA Event that is triggered. This way, it conveys the Custom Event name or the built-in Trigger that initiated the Event.

  • See post chevron_right
    agkhy
    Mod
    Google Analytics 4 and React Native Code Implementation Sept. 21, 2023, 11:01 a.m.
    @pgpt

    I'm working on a React Native project and need to incorporate GA4 for analytics.

    Is it necessary to use Firebase Analytics as the foundational code for this integration, or is there a way to directly integrate GA4 without Firebase Analytics?

    Could you provide any guidance or references on where to initiate this integration?

    GA4 is tightly integrated with Firebase Analytics, and the tracking code is embedded within the Firebase SDK. You have the flexibility to either integrate your GA4 property within Firebase or complete the integration directly within the GA4 interface. Both methods will yield the same outcome. However, it's important to note that you will require the Firebase SDK to finalize the implementation of the GA4 tracking code.

    I hope this information proves helpful.

  • See post chevron_right
    agkhy
    Mod
    Universal to GA4. Is this the right code? Code Implementation Sept. 21, 2023, 10:56 a.m.

    I can verify that the code snippets you provided appear to be correct! The initial snippets pertain to opt-out configurations, intended for administrators who don't want their own site visits to be tracked. You can configure these settings within the Site Kit plugin's Analytics settings.

    The subsequent snippets, located below the gtag.js reference, encompass both your Universal Analytics (UA-) and Google Analytics 4 (GA4) code.

    In summary, everything appears to be in order! You can also cross-reference the code by visiting the Site Kit website, where they list the code added by the plugin to users' websites, provided users have permitted the plugin to insert Analytics code for them. You can find this information here: sitekit.withgoogle.com/documentation/using-site-kit/site-kit-modules-and-your-sites-source-code/

    Regarding your question about whether it's necessary to add GA code via a WordPress theme when the Site Kit plugin is installed – the answer is no! Site Kit takes care of inserting the code for users, regardless of the theme in use. So, if you've allowed Site Kit to insert the code for you, there's no need for manual insertion of Google Analytics code.

    I hope this clarifies things for you!

  • See post chevron_right
    agkhy
    Mod
    What is the best way to track FAQ openings Code Implementation Sept. 21, 2023, 10:48 a.m.

    This is certainly achievable, but it's not a straightforward solution, especially for someone with limited experience...

    Essentially, in GTM preview mode, you should explore the available variables when a user interacts with your FAQ accordion, such as identifying click IDs.

    Here's my suggested approach (assuming you can make modifications to the HTML):

    1. Add a data-attribute to each of the clickable FAQ items and track these. If only one element is clickable, GTM will automatically make these available as the element.dataset, and you can base your tag triggers on these data-attributes.

    2. However, in many cases, users can click on multiple nested elements to open an FAQ accordion. In this scenario, you'll need to traverse the element tree to locate the nearest one with your attribute. You can utilize {{Click Element}}.closest for this purpose.

  • See post chevron_right
    agkhy
    Mod
    What is the best way to track FAQ openings Code Implementation Sept. 21, 2023, 10:41 a.m.

    Utilizing Google Tag Manager, you have the option to monitor the initiation of FAQs and trigger an event when users click on any of them.

  • See post chevron_right
    agkhy
    Mod
    API request refused with "Request had insufficient authentication scopes" Code Implementation Sept. 21, 2023, 10:27 a.m.

    I encountered persistent issues when attempting to use the Java client library, consistently encountering the same error. However, I found success when I utilized the Python library with the same Service Account JSON credentials.

  • See post chevron_right
    agkhy
    Mod
    "Paste your Google tag immediately after the <head> on each page of your website"? Code Implementation Sept. 21, 2023, 8:55 a.m.

    @mmadhu @pgpt

    Check if this works -

    function gtm_tag_head_setting() {
    echo "<!-- 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=
    'www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-...(your tag id)...');</script>
    <!-- End Google Tag Manager -->";
    }
    add_action( 'wp_head', 'gtm_tag_head_setting', 2 );

    Place this code in your functions.php

  • See post chevron_right
    agkhy
    Mod
    "Paste your Google tag immediately after the <head> on each page of your website"? Code Implementation Sept. 21, 2023, 8:51 a.m.

    Thank you for sharing these extra details. Given the challenges you're facing, my recommendation would be to consider opening a support topic on the Site Kit plugin support forums. Alternatively, you can follow the guide outlined below: sitekit.withgoogle.com/documentation/troubleshooting/dashboard/#client-id

  • See post chevron_right
    agkhy
    Mod
    "Paste your Google tag immediately after the <head> on each page of your website"? Code Implementation Sept. 21, 2023, 8:46 a.m.

    I understand not using a plugin. However, utilizing a plugin like Site Kit is essentially equivalent to manually inserting the code into your site's header via your hosting file manager. The advantage of using Site Kit is that it enables you to access Analytics data for your site directly from your WordPress admin panel, eliminating the need to switch between platforms.

    If you do prefer the manual placement of code snippets, the header of your site is typically defined within your theme files. In most cases, you'll locate the header in the "header.php" file, although it's advisable to confirm this with your theme provider.

    One important consideration when manually adding your snippet to your theme files is that unless you are using a child theme, any updates to your theme may overwrite your changes, necessitating the reinsertion of the snippet. Therefore, I recommend checking your theme settings; there might be an option to safely input your Analytics snippet.

  • See post chevron_right
    agkhy
    Mod
    Open Connected Property --> GA4 Property Setup Assistant endless loop Account Management Sept. 21, 2023, 8:25 a.m.

    To access it, you'll have to click on "Reports" located in the left-hand menu, and this menu will expand when you hover over it.

    endless loop image 1.png

  • See post chevron_right
    agkhy
    Mod
    Open Connected Property --> GA4 Property Setup Assistant endless loop Account Management Sept. 21, 2023, 8:21 a.m.

    've encountered the same problem with one of my Properties. You can distinguish GA4 Properties by the presence of "Data Streams" in the menu. Simply click on the left menu, and you'll find the reporting there.

  • See post chevron_right
    agkhy
    Mod
    GA4: Why is Life cycle menu appearing twice Account Management Sept. 21, 2023, 8:07 a.m.
    @pgpt

    The lifecycle menu is appearing twice and is duplicated. Initially, I suspected that this might be due to the implementation of two data streams, but it doesn't seem to be the root cause. Has anyone else encountered this issue?

    I haven't experienced that problem. Have you considered checking the Library to see if there might be a duplicate that you can either deactivate or delete? Alternatively, is there only one instance of it in the Library?

  • See post chevron_right
    agkhy
    Mod
    Need to block traffic from certain country Account Management Sept. 21, 2023, 7:36 a.m.
    @ljain
    @agkhy

    Google Analytics does not include a native feature for this purpose. However, if you are using Google Tag Manager (GTM), there is a method to identify the traffic and potentially block it - www.simoahava.com/custom-templates/ip-geolocation-api/

    Neet to block without IP. Please help

    IP Geolocation differs from the IP Address. It essentially performs a "reverse IP lookup" to provide the Geolocation information for the user, or at least where the request originates from. You don't have to manually input the user's IP Address; the service accomplishes this through a network ping.

  • See post chevron_right
    agkhy
    Mod
    Need to block traffic from certain country Account Management Sept. 21, 2023, 7:33 a.m.

    Google Analytics does not include a native feature for this purpose. However, if you are using Google Tag Manager (GTM), there is a method to identify the traffic and potentially block it - www.simoahava.com/custom-templates/ip-geolocation-api/

  • See post chevron_right
    agkhy
    Mod
    GA4 shows long string of letters & numbers on "page page and screen class" for conversions Other GA Questions Sept. 21, 2023, 7:21 a.m.

    Seems like it's a case of "referral spam." This is evident in the Page Path report because it uses "%3F" (URL encoding) instead of "?" to indicate the beginning of a query string. To address this issue, please submit a data deletion request (Editor-level access or higher is required):

    You can also read this - google support article link (support.google.com/analytics/answer/9940393?hl=en#zippy=%2Cin-this-article)

  • See post chevron_right
    agkhy
    Mod
    Trouble linking ga4 to google ads for shopify store Integrations Sept. 21, 2023, 6:06 a.m.

    I've managed to discover a solution. Do see if it works for you. Please follow these steps:

    1. Go to your Shopify admin.
    2. Navigate to Sales channels, then select Google.
    3. Click on Settings, and proceed to Disconnect Your Google Ads account.
    4. Go back to the Overview section and find "Optimize your business with Google Analytics." Connect your GA4 Analytics property here (Ensure you've completed Step 2).
    5. Return to the Overview section once more and locate "Promote your products on Google." Here, connect your Google Ads account.

    I hope this solution proves helpful in your situation.