Skip to content

Commit b741078

Browse files
committed
Use custom open collective tag to track donation origin
1 parent 5152051 commit b741078

5 files changed

Lines changed: 12 additions & 6 deletions

File tree

‎src/components/Donate.astro‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
---
22
import { Icon } from "astro-icon/components";
3+
4+
interface Props {
5+
tag?: string;
6+
}
7+
8+
const { tag = "gephi-website" } = Astro.props;
39
---
410

511
<a
612
class="btn btn-dark fw-bold w-md-auto"
7-
href="https://opencollective.com/gephi/donate?interval=oneTime&amount=5&name=&legalName=&email="
13+
href={`https://opencollective.com/gephi/donate?tags=${encodeURIComponent(tag)}&interval=oneTime&amount=5&name=&legalName=&email=`}
814
>
915
<Icon name="ph:heart-fill" /> Donate 5€
1016
</a>

‎src/components/DownloadGephiDesktop.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const DOWNLOAD_LINKS = await getDownloadLinks();
121121
</p>
122122
<p>Every contribution makes a difference.</p>
123123
<div class="text-center">
124-
<Donate />
124+
<Donate tag="gephi-website-modal" />
125125
</div>
126126
</dialog>
127127

‎src/layouts/Layout.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const appPages = [
180180
</li>
181181
<li class="nav-item mb-2 fw-bold">
182182
<a
183-
href="https://opencollective.com/gephi/donate?interval=oneTime&amount=5&name=&legalName=&email="
183+
href="https://opencollective.com/gephi/donate?tags=gephi-website&interval=oneTime&amount=5&name=&legalName=&email="
184184
class="nav-link p-0 text-body-secondary">Donate</a
185185
>
186186
</li>

‎src/pages/faq/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const QUESTIONS: Group<Question | Group<Question>>[] = [
9292
{
9393
question: "How can I support Gephi?",
9494
answer: `
95-
<p>Gephi is free software developed by a <a href="/about#team">small community of volunteers</a>. You can contribute to <a href="https://github.com/gephi/gephi">its development</a> or <a href="https://opencollective.com/gephi/donate">make a donation</a>.</p>
95+
<p>Gephi is free software developed by a <a href="/about#team">small community of volunteers</a>. You can contribute to <a href="https://github.com/gephi/gephi">its development</a> or <a href="https://opencollective.com/gephi/donate?tags=gephi-website">make a donation</a>.</p>
9696
`,
9797
},
9898
{

‎src/pages/index.astro‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ import GephiPaper from "../images/homepage/gephi-paper.png";
214214
Built by the <strong>community</strong>, for the community.
215215
<br />
216216
Gephi is free as in &ldquo;free beer,&rdquo; you don't have to pay (but you can <a
217-
href="https://opencollective.com/gephi/donate?interval=oneTime&amount=5&name=&legalName=&email="
217+
href="https://opencollective.com/gephi/donate?tags=gephi-website&interval=oneTime&amount=5&name=&legalName=&email="
218218
>support us</a
219219
>). And it is free as in &ldquo;free speech,&rdquo; having its source code fully available under <a
220220
href="https://github.com/gephi/gephi/blob/master/LICENSE.md">GPL license</a
@@ -238,7 +238,7 @@ import GephiPaper from "../images/homepage/gephi-paper.png";
238238
everyone.
239239
</p>
240240
<p>
241-
<a class="btn btn-dark" href="https://opencollective.com/gephi/donate"
241+
<a class="btn btn-dark" href="https://opencollective.com/gephi/donate?tags=gephi-website"
242242
><Icon name="ph:hand-heart" /> Make a donation</a
243243
>
244244
</p>

0 commit comments

Comments
 (0)