Tracking file downloads with google analytics and wordpress






















In the new window set a name for your tag such as your website name. Once you have pasted both the codes in the WordPress Theme Editor, you can click the Update file button.

Setting up tag helps in Tag Manager to let you create a trigger to fire whenever a page view is hit. Now the tag type is selected as Google Analytics: Universal Analytics. In order to find the tracking ID, go to the Google Analytics dashboard as shown in the above steps.

Copy the tracking ID and paste it in the relevant field as shown in the screenshot above. The next step is to scroll to Triggering and select to configure the trigger.

To ensure the tag that you have set for Google Analytics is working properly, Click Preview in the top right corner of the dashboard, and add your website URL in the Pop up and Click Start. This will verify that the Tag you have set up for installing Google Analytics on your website is firing properly. Now that you have set up Google Analytics in your WordPress website. You can easily populate all the data from Google Analytics to your WordPress dashboard. When you have a lot of websites to deal with, it becomes pretty hectic to manually track data in Google Analytics.

To curb this situation Analytify comes in pretty handy in bringing all your website data into the WordPress dashboard. If it is easier for you then can you download the plugin and upload it in the WordPress directory manually. You now need to connect your Analytify with your Google Analytics Account.

Well, either of the above methods you followed to add Google Analytics in WordPress, you can now simply connect Analytify with your Google Account. Once you click connect, you will be taken to a new window. From there you can select your relevant Google account which you used to sign up for Google Analytics.

In the next window you will be asked if you want to allow Analytify to access your Google Analytics data, click Allow and you will be able to see your profile. Now you can easily view your website data in the WordPress dashboard. Analytify brings limited statistics in the free version, as shown below. You can upgrade to the pro version, by either from your WordPress dashboard or check out the pricing page.

Obviously, you can track your affiliate earnings from third-party resources, but that does not give you an accurate picture of how users interact with your affiliate links. Most affiliate marketers use a link cloaking plugin like ThirstyAffiliates.

This allows you to create shorter affiliate links and manage all your links inside WordPress. From here, you can add your affiliate link prefix to start tracking. Within few hours, you will be able to see your affiliate link performance in your Publisher reports located under Insights » Reports menu in WordPress. Outbound links are the links pointing to external websites.

These could also be uncloaked affiliate links, links to your partner websites, or other websites owned by you. MonsterInsights automatically tracks all clicks on those outgoing links.

You can view them by visiting Insights » Reports page under Publishers report. This can be a sponsorship, cross-promotion, affiliate partnership, etc. First, you need to visit your Google Analytics dashboard. From there you need to switch to the Admin view. After that, you will see the options to turn on eCommerce tracking and enhanced eCommerce tracking in Google Analytics. First, you need to go to Insights » Addons page.

After that, you need to head over to Insights » Settings page and switch to the eCommerce tab. From here, you can turn on enhanced eCommerce tracking.

MonsterInsights will automatically detect your eCommerce software and turn it on for you. Below that, you will find your top referral sources and the exact conversions and revenue for each source. This information helps you learn which referral sources to maximize, and which one of them are not doing so well. MonsterInsights also sends a lot of useful data to Google that you can see under Conversions » Ecommerce section.

If you have a membership site that sells digital downloads or offer downloadable content on your website, then tracking file download buttons will help you find how users interact with those files.

MonsterInsights automatically tracks file downloads for common file types like documents, spreadsheets, presentations, PDFs, and zip files. Thank you for your reply! Since this May, the server always have problems. The site has been crashed twice… I talked to Google analytics technical support.

I was told that someone who have access to my backend removed the tags linked with google analytics. Yesterday I was guided by the Google Analytics Technical Support to copy the code from my google analytics account and pasted on my website. But this morning. A few data showed up on my GA account. I have had over people visited my website and the trends and data looked fine. The site works very slow when I try to update the contents based on the SEO results.

When I activated the google analytics. Also interesting is that all the plugins are deactivated. Are you sure you are the only one with access to the backend? What I would do in your position is to find a WordPress developer from a trusted source like Codeable and even with a small budget they can get your site in shape. I would ask to review and fix the analytics code, check the website for malware and find out why the plugins are deactivated.

Thank you so much for your reply. They all happened at the same time. I lost three months analytics data to do analysis report for my website. I paid for wordpress premium technical support to take care of this issue. By submitting this form: You agree to the processing of the submitted personal data in accordance with Kinsta's Privacy Policy , including the transfer of data to the United States.

You also agree to receive information from Kinsta related to our services, events, and promotions. You may unsubscribe at any time by following the instructions in the communications received. Your current host could be costing you time and money — get them back with Kinsta. Learn more. Kinsta Blog. Sign Up For the Newsletter. Cloudflare Enterprise integration. Also, there is a whole bunch of custom auto-event listeners, e.

Vimeo listener, Mixcloud player listener, etc. Some of them are available in the GTM Recipe library. How can we enable the link click auto-event listener? The answer is by having at least one link click trigger enabled on a page. Leave all the settings as they are and name the trigger All Link Clicks or anything else. Wait for tags is useful if the link opens in the same browser tab. If you have any tags linked to the link click trigger and Wait for tags is enabled say for milliseconds , Google Tag Manager will put the redirection temporarily on hold for up to milliseconds to give tags a chance to properly fire.

Once the tags have properly fired or milliseconds have passed, the user will continue navigation to another page. You can change the duration of that pause, not limited to milliseconds. Check Validation checks if the click was actually valid. This setting is mentioned in two guides by Simo Ahava.

Pretty often I leave this checkbox unchecked. Back to our generic link click trigger. Save it and refresh the preview and debug mode by clicking the Preview button in the GTM interface again. Go to the page where you wish to track links. Click any link on a page. It was listening to link clicks on a page and once it spotted one, it pushed a Link Click event to the Data Layer, and, therefore, it became visible in the debug console.

To sum up, we created a generic link click trigger because we needed to have the link click auto-event listener enabled on a page. If at least one link click trigger is enabled on a page not activated but just waiting for a moment to fire , the link click listener becomes enabled in the background.

In order to create more precise triggers, we need one more ingredient, variables. What are those? They are little pieces of information that can be used both in Tags and Triggers and, in fact, in other variables too. For example, Click ID. You can use it as a trigger condition e. Click Link Click event and go to the Variables tab of the Preview mode. Keep looking for anything related to clicks. Now go to the Data Layer tab o the preview mode while Link Click event is still chosen.

Because built-in click variables are not enabled in the Google Tag Manager interface. So what? If some data is not available as a variable in GTM, you cannot use it in your triggers. A panel will appear on the left side. Then go to your website and click any of the menu links. Actually, click at least two of them. Return to the preview mode and you should see Link Click events in the preview mode. Click the first Link Click event and go to the Variables tab of the preview mode.

Then click on the second Link Click event. I am currently looking for some variable that I could use to distinguish a menu link click. I want to fire it precisely on a menu link click. I will use this in my Just Links trigger. Important: in your case, the classes might be different. Then you should be looking for other variables or go more advanced with CSS selectors. Select your existing GA 4 Configuration tag and then enter the event name. Its value is up to you.

Any of the following options are perfectly fine:. These are just some of the examples. Since we are working with a custom event, we can name it whatever we want as long as we follow the limitations of name length , for example.

But this time, sending just the event name is not very useful. How about we also send the name of the menu item and the URL? We could do that by sending additional event parameters. I made these parameter names up and you can do it too. To send custom parameters, you must expand the Event Parameters section in the Google Analytics 4 event tag and then click Add Row.

Enter the name of the first parameter. Insert it as well. If you want to send more parameters, you are free to do that.



0コメント

  • 1000 / 1000