3.1 Implement HubSpot Website Analytics Reports
This tutorial is going to demostrate how to integrate and utilize HubSpot in your personal webpage.
HubSpot Website Analytics Dashboard
HubSpot provides the capability to develop custom dashboards or use dashboard templates to centralize reports on Marketing, Sales, Services and Websites. This tutorial will demonstrate how to create a Website Analytics Dashboard.
Add Tracking Code to Webpage
-
Open your
index.html
file in your IDE, VS CodeNote: VS Code Menu > File > Open Folder > Documents/resume-app
-
Open Terminal in IDE
Note: VS Code Menu > Terminal > New Terminal
-
Run the following command to get into the branch where your code is
git checkout gh-pages
-
- Open your Hubspot Console (Click
Go to my account
) - Click your Profile Icon (in the upper right corner)
- Click
Profile & Preferences
- Under
Account Set Up
, clickTracking Code
,Copy
- Paste the code in your
index.html
file open in VS Code in between the<head></head>
tags
Push Changes to GitHub website
- Open Terminal in IDE
- Run the following command to get into the branch where your code is
git checkout gh-pages
- Run the following command to get into the branch where your code is
- Run the following commands
- Add code to staging area (local changes are tracked)
git add --all
- Record file in version history
git commit -am "Added HubSpot Analytics"
- Send changes to remote repository (where your website is built from)
git push
- Add code to staging area (local changes are tracked)
Note: See 1.2 Create a Public Webpagewith GitHub Pages, Deploy to GitHub Pages form more information on GitHub Pages set up.
Create Dashboard
- Open your Hubspot Console (Click
Go to my account
) - In the menu click
Reports
,Dashboards
- Scroll down and click
Website Analytics
,Next
- Click
Create Dashboard
- Click
Exit
View Dashboard
- Open your Hubspot Console (Click
Go to my account
) - In the menu click
Reports
,Dashboards
- The
Website Analytics
Dashboard should be open - To change Dashboards click the title of the current dashboard and select the dashboard you want to view