Avoid The Top 10 Ceiling Fans Mistakes

Cooling down your property is necessary in the hot summers. Unfortunately, every time you switch on your air conditioning in Austin, you see a foul odor coming the system. Should you call a…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




How To Event Stream Data From Your Hugo Site To Google Analytics Using RudderStack

You can easily implement event streams on your Hugo site by following three steps:

1. Integrate your Hugo site with RudderStack JavaScript SDK and set up the tracking code

2. Set up a tool or warehouse destination in RudderStack to route all the event data in real-time

3. Deploy your Hugo site and verify the event stream

First and foremost, open your RudderStack Dashboard and set up a JavaScript source to track the events from your Hugo site. Follow the instructions listed below to set up the source:

2. Once done, you will see the following dashboard:

3. Note the Data Plane URL as you will need this URL to integrate your Hugo site with RudderStack.

4. Next, create a Source by clicking on the Add Source option. If already added, you can also click on the Directory option in the left navigation bar, and select Event Streams under Sources, as shown. Next, select JavaScript as a source.

5. Add a name for your JavaScript source and click on Next.

6. Now the JavaScript source is configured and all set to track events. Take note of the WRITE KEY associated with this source. You will need this key to set up the RudderStack integration with your Hugo site.

Integrate RudderStack JavaScript code with your Hugo Site and set up the tracking code using the following steps:

…waiting for Gist…

1. Click on Destinations in your RudderStack dashboard’s left navigation bar, and then select Add Destination as shown:

2. Choose Google Analytics as your destination.

3. Add a name to your destination and click on Next, as shown:

4. Once the destination is named, connect it to the JavaScript source that you have already configured in Step 1 — Integrating your Hugo site with the RudderStack JavaScript SDK.

5. Next, on the Connection Settings page, configure your Google Analytics destination with your Google Analytics Tracking ID and other optional settings, as shown below. Then, click Next.

7. Congratulations! Google Analytics is now configured as a destination. Now, you will be able to see the following source-destination connection in your dashboard:

Once the project is all set and the required user permissions are assigned, follow the instructions given below:

1. From the Destinations Directory, select Google BigQuery:

2. Name your Destination and click Next.

3. Now, connect to the JavaScript source from which you will track your Hugo Site events. Then, click Next.

5. Once done, copy the contents of the private JSON file.

Voila! You have now successfully set up BigQuery as a warehouse destination in RudderStack.

Now that your event source and destination are configured, verify that the event stream is working. For this, deploy your Hugo Site application and test whether the events are being tracked by the JavaScript source and delivered to your Google Analytics destination.

Follow the steps below:

1. In your Terminal or Command Prompt, navigate to the folder containing your Hugo Site.

2. To deploy the app, execute the hugo server -D command, as shown:

4. Next, verify if rudder-analytics.js (RudderStack’s JavaScript SDK) has loaded correctly. For this, open your browser’s Developer tools and navigate to the Network tab. The following screenshot highlights this option for Google Chrome:

5. Now check if RudderStack can track the different page views and clicks by clicking on the Live Events tab of your JavaScript source on the RudderStack dashboard page:

6. Great! RudderStack has successfully tracked and captured the event:

7. Next, check if the events are being sent to your Google Analytics destination. For that, go to your Google Analytics dashboard and navigate to the Realtime > Events option.

As you can see there is one active user on the Hugo site, and the event call is visible. This indicates that the event was tracked and delivered successfully. You will also receive the event in your Google BigQuery warehouse.

Web analytics facilitates collecting and analyzing user behavior data on a website. It helps companies understand their user behavior in order to optimize performance and create better end-user experiences. RudderStack enables companies to perform web analytics securely.

In this article, you learned how Rudderstack can be used to capture real-time event data from your Hugo site by integrating the site with the RudderStack JS SDK and setting up the tracking code. You also explored how to integrate Google Analytics as a destination in RudderStack to route real-time event data from your Hugo site to the Google Analytics platform.

Add a comment

Related posts:

4 Places To Visit Near The Yoga Barn Bali For Party Enthusiasts

Bali is a nature lover’s paradise. With pristine beaches, volcanic mountains and lush green rice paddies, it is an amazing place to spend time in. However, Bali’s natural beauty is not the only…

This tutorial will provide you with a complete understanding of AEM for beginners

With the ever-evolving and competitive market we’re currently living in, customers are becoming savvy on a daily basis, and so are their demands. Therefore, one of the most effective ways to keep…

6 No Brainer Tips on How to Get Over a Crush Easily

Having a crush is like having an itch in a place you can’t reach at the time. And getting over a crush is like saying no to a perfect temptation just because it could cost you your relationship. Not…