Learn business growth with Google Analytics 4 Forums Google Analytics 4 How to track user engagement and page views for articles written by our writer using custom dimensions in GA4 Reply To: How to track user engagement and page views for articles written by our writer using custom dimensions in GA4

  • George

    17 April 2023 at 10:56 pm

    To extract the specifics data such as the “Editor name” and the “Published Date” from GA4, you’ll want to use Google Tag Manager (GTM) in tandem with GA4. The first step is to create user-defined variables in GTM to capture these specific elements. You’ll likely need to use JavaScript or jQuery selectors to capture these data points from your site. Once you’ve implemented the required custom JavaScript variable, run a test to be sure you’re pulling the correct data.

    Once these variables are in place, you’ll next need to configure your GA4 settings. In addition to the standard data sent by GTM to GA4, you’ll want to add a new parameter. The Parameter Name should match the key you want in GA4 (e.g., “editor_name”), and the value should correspond to your newly created GTM variable (e.g., {{Editor Name}}).

    However, you’ll also have to configure GA4 to collect the new data. This involves creating a new custom definition in GA4 that matches the parameters we’re sending over from GTM. Navigate to the GA4 property, then ‘All Events’ -> ‘Manage Custom Definitions’ -> ‘Create Custom Dimensions’. Ensure the Event parameter name matches the parameter you’re sending from GTM, and give it a fitting description and display name.

    After implementation, it might take a while for data to start populating within GA4. Monitor the results, and fine-tune if necessary. Finally, to generate the desired report, you might need to use the explore option in GA4 to display data according to the custom dimensions (editor name and published date). You can then compile the data as per your preference on the GA4 dashboard or your desired data visualization tool.

    Given the complexity and detail of this process, you might consider hiring a GA4/GTM consultant or doing further research if any of the above steps are difficult to follow or not bringing the expected results. Remember to consistently test and validate the data being sent to GA4 to ensure that desired output is achieved. Good luck!