From 065324e5d5988056c5673e0bb1b5fefa04ccdf38 Mon Sep 17 00:00:00 2001 From: yuliya Date: Wed, 13 Nov 2019 21:22:05 +0100 Subject: [PATCH 1/3] #62 vue-analytics added to package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 4969ace88..f0938b121 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "clipboard": "^2.0.4", "sass-loader": "^7.3.1", "vue": "^2.5.2", + "vue-analytics": "^5.17.2", "vue-head": "^2.1.2", "vue-i18n": "^8.15.0" }, From b5b498fc11c8cfafc44385bff9c5766bcc8cdae5 Mon Sep 17 00:00:00 2001 From: yuliya Date: Wed, 13 Nov 2019 21:24:30 +0100 Subject: [PATCH 2/3] #62 google analytics initialized and event added to the license chooser and the help section --- src/App.vue | 4 ++ src/components/Chooser.vue | 5 ++ src/components/HelpSection.vue | 86 +++++++++++++++++++++++++--------- src/main.js | 9 ++++ 4 files changed, 83 insertions(+), 21 deletions(-) diff --git a/src/App.vue b/src/App.vue index 1a48a7961..a6c2573a7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -62,6 +62,10 @@ export default { onLicenseUpdate(e) { this.selected = e } + }, + created: function() { + // send home to google analytics + this.$ga.page('/') } } diff --git a/src/components/Chooser.vue b/src/components/Chooser.vue index fcb3a0590..e236dce9c 100644 --- a/src/components/Chooser.vue +++ b/src/components/Chooser.vue @@ -52,6 +52,11 @@ export default { }, methods: { updateLicense() { + this.$ga.event({ + eventCategory: 'license', + eventAction: 'updated', + eventLabel: this.shortLicenseName + }) this.$emit('input', { shortName: this.shortLicenseName, fullName: this.fullLicenseName diff --git a/src/components/HelpSection.vue b/src/components/HelpSection.vue index 3c15db269..799dc3702 100644 --- a/src/components/HelpSection.vue +++ b/src/components/HelpSection.vue @@ -50,7 +50,7 @@

Creative Commons licenses can be represented by their names, their - associated icons, or both. For example, a CC BY-NC license, which + associated icons, or both. For example, a CC BY-NC license, which requires attribution, and prohibits commercial use could be represented by its: @@ -169,7 +169,7 @@


- For more information, please see + For more information, please see About the Licenses

@@ -186,16 +186,16 @@
  • - Legal Code:

    - Each license begins as a traditional legal tool, in the kind of - language and text formats that most lawyers know and love. We + Each license begins as a traditional legal tool, in the kind of + language and text formats that most lawyers know and love. We call this the Legal Code layer of each license.


  • - Human Readable:

    - Since most creators, educators, and scientists are not in fact lawyers, - we also make the licenses available in a format that normal people can read -- + Since most creators, educators, and scientists are not in fact lawyers, + we also make the licenses available in a format that normal people can read -- The Commons Deed (also known as the “human readable” version of the license). This is a handy reference for licensors and licensees, summarizing some of the most important terms and conditions. Think of the Commons Deed as a user-friendly @@ -211,14 +211,14 @@ software, we provide a "Machine Readable" version of the license.

    We developed a standardized way to describe licenses that software can - understand called CC Rights Expression language + understand called CC Rights Expression language (CC REL) to accomplish this.


  • - For more information, please see + For more information, please see About the Licenses

    @@ -232,12 +232,12 @@

    Our Public Domain Tools help authors keep and manage their copyright on terms they choose. Our public domain tools, on the other hand, enable - authors and copyright owners who want to dedicate their works to the + authors and copyright owners who want to dedicate their works to the worldwide public domain to do so.

    - For more information on CC's public domain tools, please see + For more information on CC's public domain tools, please see Our Public Domain Tools

    @@ -250,7 +250,7 @@