Skip to content

Commit

Permalink
Add gtag to curriculum app
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesanantonio committed Sep 5, 2020
1 parent aad871b commit 082feff
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions curriculum/static/js/curriculumForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import Vue from 'vue';
import { BootstrapVue } from 'bootstrap-vue';
import 'bootstrap-vue/dist/bootstrap-vue.css';

import VueGtag from "vue-gtag";

import TheCurriculumForm from './components/TheCurriculumForm.vue';

import axios from 'axios';
Expand All @@ -21,6 +23,10 @@ $(() => {

Vue.use(BootstrapVue);

Vue.use(VueGtag, {
config: { id: "UA-123339471-1" },
});

axios.defaults.xsrfCookieName = 'csrftoken';
axios.defaults.xsrfHeaderName = 'X-CSRFTOKEN';

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"popper.js": "^1.16.1",
"style-loader": "^0.21.0",
"vue": "^2.6.11",
"vue-gtag": "^1.9.0",
"vue-loader": "^15.9.0",
"vue-template-compiler": "^2.6.11",
"vuedraggable": "^2.23.2",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5476,6 +5476,11 @@ vue-functional-data-merge@^3.1.0:
resolved "https://registry.yarnpkg.com/vue-functional-data-merge/-/vue-functional-data-merge-3.1.0.tgz#08a7797583b7f35680587f8a1d51d729aa1dc657"
integrity sha512-leT4kdJVQyeZNY1kmnS1xiUlQ9z1B/kdBFCILIjYYQDqZgLqCLa0UhjSSeRX6c3mUe6U5qYeM8LrEqkHJ1B4LA==

vue-gtag@^1.9.0:
version "1.9.0"
resolved "https://registry.yarnpkg.com/vue-gtag/-/vue-gtag-1.9.0.tgz#db97c688d396756643aba005308c8de3fb0e7a1b"
integrity sha512-Ru1djABS+hapgo+XFRKcR6gBj2EF+pKKvy4i6DD6RbC5oCsME8Fh1rWy9pxcUBu3FUzRHr2wz1EZ3du1/x3SqQ==

vue-hot-reload-api@^2.3.0:
version "2.3.4"
resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2"
Expand Down

0 comments on commit 082feff

Please sign in to comment.