How to track views of Joomla Flipbook using Google Analytics?


You can track flipbook views using Google Analytics as well as Google Tag Manager.
First and foremost, you'll need to enable the Analytics feature in Dearflip Settings. To do so, please follow these steps.

  1. Go to Component--> Dearflip --> Global Settings 
  2. Scroll down to find "Enable Analytics"
  3. Set "Enable Analytics" to "True" to track the views of Joomla Flipbooks
  4. Save the Global Settings.

Using Google Analytics To Track Joomla Flipbook

 

Using Google Tag Manager To Track Joomla Flipbook

We'll need to create a trigger and a tag in Google Tag Manger to send the events data to Google Analytics 4. Let's first create a Trigger,

  1. Go to Google Tag Manger,
  2. Select the Container you have created for your website
  3. Under the "Workspace" tab, on the left side bar, you'll find a list of items: Click on the "Triggers"
  4. Click "New" and click on "choose a trigger type to begin setup"
  5. Scroll down the list of trigger types to find "Custom Event" in the "Others" category.
  6. Choose the Custom Event trigger type
  7. Now, in the event name, put .* (this regex will match all events)
  8. Enable the option "Use Regex Matching"
  9. Save the trigger with the name "Custom Event"

Now, let's create a Tag:

  1. Similarly, under the "Workspace" tab on the left side bar, click on "Tags"
  2. Click "New" and click on "choose a tag type to begin setup"
  3. Click on Google Analytics
  4. Select on Google Analytics: GA4 Event
  5. In the "Measurement ID" field, enter your website's Google Analytics Measurement ID.
  6. In the Event name field, enter this: {{Event Name}}
  7. Scroll down to find the Triggering section,
  8. Click on "Choose a trigger"
  9. Choose the "Custom Event" trigger that you just created.
  10. Now, save the tag.