Skip to content

Commit 8d1e166

Browse files
authored
chore: analytics support for commonroom and scarf (#2250)
added scraf and commonroom support
1 parent 88ef2e0 commit 8d1e166

File tree

4 files changed

+25
-8
lines changed

4 files changed

+25
-8
lines changed

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,10 @@ Find the complete [Quickstart Guide](https://docs.ragas.io/en/latest/getstarted/
9494

9595
## Want help in improving your AI application using evals?
9696

97-
In the past 2 years, we have seen and helped improve many AI applications using evals.
98-
99-
We are compressing this knowledge into a product to replace vibe checks with eval loops so that you can focus on building great AI applications.
100-
101-
If you want help with improving and scaling up your AI application using evals.
97+
In the past 2 years, we have seen and helped improve many AI applications using evals. If you want help with improving and scaling up your AI application using evals.
10298

10399
🔗 Book a [slot](https://bit.ly/3EBYq4J) or drop us a line: [founders@explodinggradients.com](mailto:founders@explodinggradients.com).
104100

105-
![](/docs/_static/ragas_app.gif)
106-
107101
## 🫂 Community
108102

109103
If you want to get more involved with Ragas, check out our [discord server](https://discord.gg/5qGUJ6mh7C). It's a fun community where we geek out about LLM, Retrieval, Production issues, and more.

docs/_static/js/commonroom.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// CommonRoom Analytics
2+
(function() {
3+
if (typeof window === 'undefined') return;
4+
if (typeof window.signals !== 'undefined') return;
5+
var script = document.createElement('script');
6+
script.src = 'https://cdn.cr-relay.com/v1/site/af0e3230-e3f4-4e7d-8790-28b56c38d8a9/signals.js';
7+
script.async = true;
8+
window.signals = Object.assign(
9+
[],
10+
['page', 'identify', 'form'].reduce(function (acc, method){
11+
acc[method] = function () {
12+
signals.push([method, arguments]);
13+
return signals;
14+
};
15+
return acc;
16+
}, {})
17+
);
18+
document.head.appendChild(script);
19+
})();

docs/extra/overrides/main.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
{% block extrahead %}
44
{{ super() }}
5+
<!-- Scarf Analytics -->
6+
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=f4040c26-97ff-4975-bcbb-8db47063d472" />
7+
58
<!-- Open Graph / Facebook -->
69
<meta property="og:type" content="website">
710
{% if page and page.canonical_url %}<meta property="og:url" content="{{ page.canonical_url }}">{% endif %}
@@ -39,4 +42,4 @@
3942
Office Hours <a href="https://cal.com/team/ragas/office-hours">here</a>.
4043
</p>
4144
</div>
42-
{% endblock %}
45+
{% endblock %}

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,4 @@ extra_javascript:
287287
- _static/js/toggle.js
288288
- https://cdn.octolane.com/tag.js?pk=c7c9b2b863bf7eaf4e2a # octolane for analytics
289289
- _static/js/reo.js # reo analytics
290+
- _static/js/commonroom.js # commonroom analytics

0 commit comments

Comments
 (0)