Skip to content

Commit 8a9c451

Browse files
authored
feat(docs): Add utm_ params to apply links (#2817)
* feat(utm): Add utm params to apply links * Add utm_content to apply links
1 parent c7f6106 commit 8a9c451

File tree

11 files changed

+26
-13
lines changed

11 files changed

+26
-13
lines changed

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ YARN_VERSION = "1.22.5"
33

44
[[redirects]]
55
from = "/apply/"
6-
to = "https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch"
6+
to = "https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch&utm_source=docsearch.algolia.com&utm_medium=referral&utm_campaign=docsearch&utm_content=apply"
77
status = 301
88
force = true

packages/website/docs/docsearch-program.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Please reach out to our [support](https://algolia.com/support) team.
8888

8989
## Can I have multiple projects under the same Algolia application?
9090

91-
We recommend having a single Algolia application per project. Please [apply](https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch) if you'd like to use DocSearch in an other project of yours.
91+
We recommend having a single Algolia application per project. Please [apply](https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch&utm_source=docsearch.algolia.com&utm_medium=referral&utm_campaign=docsearch&utm_content=apply) if you'd like to use DocSearch in an other project of yours.
9292

9393
### Why ?
9494

packages/website/docs/how-does-it-work.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ We'll then get back to you with the JavaScript snippet you'll need to add to you
4141

4242
Now that DocSearch is set, you don't have anything else to do. We'll keep crawling your website and update your search results automatically. All we ask is that you keep the "Search by Algolia" logo next to your search results.
4343

44-
[1]: https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch
44+
[1]: https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch&utm_source=docsearch.algolia.com&utm_medium=referral&utm_campaign=docsearch&utm_content=apply
4545
[2]: /docs/who-can-apply
4646
[3]: https://github.com/algolia/docsearch-configs/tree/master/configs
4747
[4]: /docs/styling

packages/website/docs/what-is-docsearch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ You can now [apply to the program][3]
2626

2727
[1]: https://opencollective.com/algolia
2828
[2]: /docs/who-can-apply
29-
[3]: https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch
29+
[3]: https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch&utm_source=docsearch.algolia.com&utm_medium=referral&utm_campaign=docsearch&utm_content=apply
3030
[4]: https://www.algolia.com/products/search-and-discovery/crawler/
3131
[5]: https://dashboard.algolia.com/crawler
3232
[6]: https://www.algolia.com/doc/ui-libraries/autocomplete/introduction/what-is-autocomplete/

packages/website/docs/who-can-apply.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ DocSearch application process includes automated validation for faster processin
2424

2525
Once approved, you can continue the onboarding process to create your DocSearch crawler. After your data is ingested into Algolia, you'll need to implement the search UI using either our provided code snippet or one of our [integrations][3].
2626

27-
[1]: https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch
27+
[1]: https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch&utm_source=docsearch.algolia.com&utm_medium=referral&utm_campaign=docsearch&utm_content=apply
2828
[2]: https://www.algolia.com/policies/docsearch-plan-specific-terms
2929
[3]: integrations.md
3030
[4]: https://alg.li/discord

packages/website/docusaurus.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { themes } from 'prism-react-renderer';
33
import myLoaders from './plugins/my-loaders.mjs';
44
import tailwindLoader from './plugins/tailwind-loader.mjs';
55

6-
const SIGNUP_LINK = 'https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch';
6+
const SIGNUP_LINK =
7+
'https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch&utm_source=docsearch.algolia.com&utm_medium=referral&utm_campaign=docsearch&utm_content=apply';
78

89
const currentDate = new Date();
910
const currentYear = currentDate.getFullYear();

packages/website/src/components/Home.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ function VideoPlayer({ chapters }) {
7575
<div
7676
key={chapter.label}
7777
className="absolute flex flex-col items-center"
78-
style={{ left: `${(chapter.time / duration) * 100}%`, transform: 'translateX(-50%)' }}
78+
style={{
79+
left: `${(chapter.time / duration) * 100}%`,
80+
transform: 'translateX(-50%)',
81+
}}
7982
>
8083
{/* Arrow/triangle */}
8184
<div
@@ -156,7 +159,11 @@ function Home() {
156159
</div>
157160
<div className="flex my-12 gap-8">
158161
<Button href={withBaseUrl('docs/what-is-docsearch')}>Find out more</Button>
159-
<PrimaryButton href={'https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch'}>
162+
<PrimaryButton
163+
href={
164+
'https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch&utm_source=docsearch.algolia.com&utm_medium=referral&utm_campaign=docsearch&utm_content=apply'
165+
}
166+
>
160167
Sign up
161168
</PrimaryButton>
162169
</div>
@@ -244,7 +251,12 @@ function Home() {
244251
<br />
245252
with DocSearch
246253
</div>
247-
<PrimaryButton key="apply" href={'https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch'}>
254+
<PrimaryButton
255+
key="apply"
256+
href={
257+
'https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch&utm_source=docsearch.algolia.com&utm_medium=referral&utm_campaign=docsearch&utm_content=apply'
258+
}
259+
>
248260
Sign up for free
249261
</PrimaryButton>
250262
</div>

packages/website/versioned_docs/version-v3/docsearch-program.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Please reach out to our [support](https://algolia.com/support) team.
8888

8989
## Can I have multiple projects under the same Algolia application?
9090

91-
We recommend having a single Algolia application per project. Please [apply](https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch) if you'd like to use DocSearch in an other project of yours.
91+
We recommend having a single Algolia application per project. Please [apply](https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch&utm_source=docsearch.algolia.com&utm_medium=referral&utm_campaign=docsearch&utm_content=apply) if you'd like to use DocSearch in an other project of yours.
9292

9393
### Why ?
9494

packages/website/versioned_docs/version-v3/how-does-it-work.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ We'll then get back to you with the JavaScript snippet you'll need to add to you
4141

4242
Now that DocSearch is set, you don't have anything else to do. We'll keep crawling your website and update your search results automatically. All we ask is that you keep the "Search by Algolia" logo next to your search results.
4343

44-
[1]: https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch
44+
[1]: https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch&utm_source=docsearch.algolia.com&utm_medium=referral&utm_campaign=docsearch&utm_content=apply
4545
[2]: /docs/who-can-apply
4646
[3]: https://github.com/algolia/docsearch-configs/tree/master/configs
4747
[4]: /docs/styling

packages/website/versioned_docs/version-v3/what-is-docsearch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ You can now [apply to the program][3]
2626

2727
[1]: https://opencollective.com/algolia
2828
[2]: /docs/who-can-apply
29-
[3]: https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch
29+
[3]: https://dashboard.algolia.com/users/sign_up?selected_plan=docsearch&utm_source=docsearch.algolia.com&utm_medium=referral&utm_campaign=docsearch&utm_content=apply
3030
[4]: https://www.algolia.com/products/search-and-discovery/crawler/
3131
[5]: https://dashboard.algolia.com/crawler
3232
[6]: https://www.algolia.com/doc/ui-libraries/autocomplete/introduction/what-is-autocomplete/

0 commit comments

Comments
 (0)