Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Norris <cnorris@gitlab.com>2021-11-19 18:01:10 +0300
committerCraig Norris <cnorris@gitlab.com>2021-11-19 18:01:10 +0300
commitc18cbc97183f5be7af777d324a2718e840a4f77d (patch)
tree5cf6b9339fca23cd2b0480119606417f8099c3ed
parent9cbacafcfb56e35f9bdd2faa807ee3b0dc8f20ad (diff)
parent5dc8e80a5a2ad96bccf52734d06175f82ab922f2 (diff)
Merge branch 'jg-badge-tracking-mvc' into 'main'
Add query string to badges linking to pricing page See merge request gitlab-org/gitlab-docs!2254
-rw-r--r--content/assets/javascripts/badges.js4
-rw-r--r--doc/development.md14
2 files changed, 16 insertions, 2 deletions
diff --git a/content/assets/javascripts/badges.js b/content/assets/javascripts/badges.js
index d6544c0f..fba7fe17 100644
--- a/content/assets/javascripts/badges.js
+++ b/content/assets/javascripts/badges.js
@@ -1,5 +1,5 @@
---
-version: 6
+version: 7
---
(function() {
@@ -123,7 +123,7 @@ version: 6
'data-placement': 'top',
'target': '_blank',
title: title,
- href: 'https://about.gitlab.com/pricing/'
+ href: 'https://about.gitlab.com/pricing/?glm_source=docs.gitlab.com&glm_content=badges-docs'
});
container.append($('<span>').append(badges));
diff --git a/doc/development.md b/doc/development.md
index 28327c85..d9e3d416 100644
--- a/doc/development.md
+++ b/doc/development.md
@@ -91,3 +91,17 @@ The links pointing to the files should be similar to:
Nanoc then builds and renders those links correctly according with what's
defined in [`Rules`](https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/Rules).
+
+## Adding query strings to CTAs headed to about.gitlab.com/pricing
+
+We've created [a Sisense dashboard that can only be seen by full-time team members](https://app.periscopedata.com/app/gitlab/950797/GitLab.com-SaaS-trials---no-SAFE-data)
+to track the number of SaaS free trials that start from a documentation page.
+
+If you would like to track that information, add the following parameters to the URL:
+
+- `glm_source` is `docs.gitlab.com`
+- `glm_content` set to anything that ends with `-docs`
+
+### Example:
+
+`https://about.gitlab.com/pricing?=glm_source=docs.gitlab.com&glm_content=name-of-item-docs`