# Tracking Knowledge Base Articles

**URL:** <https://community.hubspot.com/t/tracking-knowledge-base-articles/101394>\
**Category:** Knowledge Base Tool\
**Tags:** content\
**Created:** [February 29, 2024, 12:22pm UTC](https://community.hubspot.com/t/tracking-knowledge-base-articles/101394 "2024-02-29T12:22:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![skylightipv](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@skylightipv](https://community.hubspot.com/u/skylightipv)\
**Post date:** [February 29, 2024, 12:22pm UTC](https://community.hubspot.com/t/tracking-knowledge-base-articles/101394/1 "2024-02-29T12:22:40Z")

</div>

Can I use the Hubspot tracking code from our website for the knowledge base articles? If so I assume it’s just by copying the tracking script html into the Additional Options setting

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [February 29, 2024, 12:56pm UTC](https://community.hubspot.com/t/tracking-knowledge-base-articles/101394/2 "2024-02-29T12:56:43Z")

</div>

Hi @skylightipv I wouldn’t advise adding your tracking code to individual knowledge base articles for two reasons:

1 - you’d have to manually add it to every post, there isn’t a global head html option

2 - more importantly, your knowledge base is already included in existing website analytics within HubSpot reports

have you explored the reports already available to locate your knowledge base analytics?

---

<div class="post-metadata">

**Author:** ![skylightipv](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@skylightipv](https://community.hubspot.com/u/skylightipv)\
**Post date:** [February 29, 2024, 3:23pm UTC](https://community.hubspot.com/t/tracking-knowledge-base-articles/101394/3 "2024-02-29T15:23:06Z")

</div>

Looking at the generated html of the KB article it looks like our tracking script is already embedded in this section

```lia-code-sample
<!-- Start of HubSpot Analytics Code -->
...in here...
<!-- End of HubSpot Analytics Code -->

```

So where would I see which unique visitors have read the article? It looks like most tracking information is aggregated

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [February 29, 2024, 9:33pm UTC](https://community.hubspot.com/t/tracking-knowledge-base-articles/101394/4 "2024-02-29T21:33:43Z")

</div>

Hi @skylightipv that’s correct, the code is added automatically by HubSpot directly which is how the analytics data is generated.

[This article goes through how to analyze your KB performance](https://knowledge.hubspot.com/knowledge-base/how-do-i-analyze-my-knowledge-base-performance), and there are prebuilt reports on the Service Dashboard, all are aggregated data.

I did a few tests and couldn’t trigger knowledge base pages to show in a contact record individually or to access unique visitors.

---

<div class="post-metadata">

**Author:** ![skylightipv](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@skylightipv](https://community.hubspot.com/u/skylightipv)\
**Post date:** [March 4, 2024, 8:39am UTC](https://community.hubspot.com/t/tracking-knowledge-base-articles/101394/5 "2024-03-04T08:39:08Z")

</div>

Thanks in which case we’ll have to build our own tracker solution.

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [March 4, 2024, 12:56pm UTC](https://community.hubspot.com/t/tracking-knowledge-base-articles/101394/6 "2024-03-04T12:56:41Z")

</div>

you’re welcome @skylightipv, happy to help!

---

<div class="post-metadata">

**Author:** ![SSeed](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@SSeed](https://community.hubspot.com/u/SSeed)\
**Post date:** [March 4, 2024, 12:58pm UTC](https://community.hubspot.com/t/tracking-knowledge-base-articles/101394/7 "2024-03-04T12:58:24Z")

</div>

Yes, you can use the HubSpot tracking code from your website for knowledge base articles by copying the tracking script HTML into the Additional Options setting. This allows you to track the performance and engagement of your knowledge base articles using the same tracking capabilities as your website. Simply paste the tracking script into the appropriate field within your knowledge base platform’s settings to begin tracking.

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [March 5, 2024, 1:54am UTC](https://community.hubspot.com/t/tracking-knowledge-base-articles/101394/8 "2024-03-05T01:54:56Z")

</div>

@SSeed is this something you’ve configured with your knowledge base? I’d just like to confirm that you’ve implemented this solution - since the tracking script is automatically added, are you seeing any duplicate data?
