Skip to content

Commit 612eced

Browse files
committed
Use fork of vuepress-plugin-plausible with outbound link tracking and remove implementation in component.
1 parent f1a6fad commit 612eced

File tree

3 files changed

+8
-22
lines changed

3 files changed

+8
-22
lines changed

curriculum/.vuepress/components/BottomCallout.vue

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
<script>
22
export default {
3-
props: ['title', 'subtitle'],
4-
mounted() {
5-
this.plausibleEvent = function(eventName, props) {
6-
if (props) {
7-
props['path'] = window.location.pathname;
8-
} else {
9-
props = {
10-
path: window.location.pathname
11-
}
12-
}
13-
var plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) };
14-
plausible(eventName, props);
15-
}
16-
}
3+
props: ['title', 'subtitle']
174
}
185
</script>
196

@@ -89,7 +76,7 @@ export default {
8976
</li>
9077
</ul>
9178
<p class="bottom-callout__text">
92-
<a v-on:click="plausibleEvent('Course CTA Clicked')" href="https://go.tecla.do/web-dev-course-sale" class="bottom-callout__link">
79+
<a href="https://go.tecla.do/web-dev-course-sale" class="bottom-callout__link">
9380
Get the video course <svg class="bottom-callout__feature-icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(1,0,0,1,0,0)"><path d="M10.5,9.121h6V6.011c0-.272.163-.343.362-.158L23,11.54a.751.751,0,0,1-.017,1.142l-6.116,5.336c-.2.185-.362.114-.362-.157v-2.74h-6" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M7.5 9.121L5.25 9.121" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M3 9.121L0.75 9.121" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M7.5 15.121L5.25 15.121" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M3 15.121L0.75 15.121" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></g></svg>
9481
</a>
9582
</p>

package-lock.json

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"dependencies": {
1212
"markdown-it-footnote": "^3.0.3",
1313
"markdown-it-task-lists": "^2.1.1",
14-
"vuepress-plugin-plausible": "0.0.2"
14+
"vuepress-plugin-plausible": "github:tecladocode/vuepress-plugin-plausible"
1515
}
1616
}

0 commit comments

Comments
 (0)