To set up the event stream on your Hugo site, you need to perform the following steps:
For this guide, Google Analytics is added as a destination.
Click Add Destination in RudderStack dashboard’s home page.
Choose Google Analytics from the list of destinations.
Assign a name to your destination and click Next.
Configure your Google Analytics destination with your Google Analytics Tracking ID in the Connection Settings page. For details on the other settings, refer to the Google Analytics documentation.
Optionally, you can add a transformation to this destination to transform your events before sending them to Google Analytics.
Google Analytics is now configured as a destination. You should be able to see the connection in your RudderStack dashboard, as seen below:
You can also set up a warehouse destination in RudderStack and send your tracked events to it.
Deploying your Hugo site and verifying the event stream
To verify if your event stream is working correctly, deploy your Hugo site and test if the events are tracked and delivered correctly. Follow these steps:
From your terminal, navigate to the folder containing your Hugo site and run following command:
hugo server -D
Open the local server URL(generally http://localhost:1313/) in your browser to view the site.
Click the various links or pages in your Hugo site for RudderStack to track these actions.
You may face a minor delay before the events start showing up in your dashboard and the destination.
Upon successful tracking, you will see the events in your RudderStack dashboard:
Go to the Google Analytics dashboard and navigate to Realtime > Events option to check if the events are delivered. Your tracked events will be shown in this window along with other metrics such as number of active users, source platform, etc.
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
for the working of basic functionalities of the website. We also use third-party cookies that
analyze and understand how you use this website. These cookies will be stored in your browser
consent. You also have the option to opt-out of these cookies. But opting out of some of these
have an effect on your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.