Skip to content

Commit

Permalink
Update matomo.org links with campaign parameters vue components
Browse files Browse the repository at this point in the history
  • Loading branch information
bx80 committed Oct 12, 2023
1 parent 5a444d0 commit bd68136
Show file tree
Hide file tree
Showing 6 changed files with 1,344 additions and 1,924 deletions.
2,510 changes: 607 additions & 1,903 deletions vue/dist/GoogleAnalyticsImporter.umd.js

Large diffs are not rendered by default.

729 changes: 721 additions & 8 deletions vue/dist/GoogleAnalyticsImporter.umd.min.js

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions vue/src/Configure/ConfigureConnection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
import { defineComponent } from 'vue';
import {
translate,
externalLink,
} from 'CoreHome';

export default defineComponent({
Expand Down Expand Up @@ -146,21 +147,19 @@ export default defineComponent({
},
computed: {
setupGoogleAnalyticsImportFaq() {
const url = 'https://matomo.org/faq/general/set-up-google-analytics-import/';
return translate(
'GoogleAnalyticsImporter_ConfigureTheImporterLabel3',
`<a href="${url}" rel="noreferrer noopener" target="_blank">`,
externalLink('https://matomo.org/faq/general/set-up-google-analytics-import/'),
'</a>',
);
},
isUploadButtonDisabled() {
return this.isSelectingFile || this.isUploading;
},
getAdvanceConnectStep01Text() {
const faqLink = 'https://matomo.org/faq/general/set-up-google-analytics-import/';
return this.translate(
'GoogleAnalyticsImporter_GAImportNoDataScreenStep01',
`<a href="${faqLink}" target="_blank" rel="noreferrer noopener">`,
externalLink('https://matomo.org/faq/general/set-up-google-analytics-import/'),
'</a>',
);
},
Expand All @@ -171,19 +170,18 @@ export default defineComponent({
);
},
getAdvanceConnectStep04Text() {
const faqLink = 'https://matomo.org/faq/general/running-the-google-analytics-import/';
return this.translate(
'GoogleAnalyticsImporter_GAImportNoDataScreenStep04',
`<a href="${this.indexActionUrl}" target="_blank" rel="noreferrer noopener">`,
'</a>',
`<a href="${faqLink}" target="_blank" rel="noreferrer noopener">`,
externalLink('https://matomo.org/faq/general/running-the-google-analytics-import/'),
'</a>',
);
},
getAdvanceConnectStep05Text() {
return this.translate(
'GoogleAnalyticsImporter_GAImportNoDataScreenStep05',
`<a href="${this.indexActionUrl}" target="_blank" rel="noreferrer noopener">`,
externalLink(this.indexActionUrl),
'</a>',
);
},
Expand Down
4 changes: 2 additions & 2 deletions vue/src/ImportScheduler/ImportScheduler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ import {
NotificationsStore,
AjaxHelper,
parseDate,
externalLink,
} from 'CoreHome';
import { Field } from 'CorePluginsAdmin';

Expand Down Expand Up @@ -252,10 +253,9 @@ export default defineComponent({
);
},
forceIgnoreOutOfCustomDimSlotErrorHelp() {
const url = 'https://matomo.org/docs/custom-dimensions/';
return translate(
'GoogleAnalyticsImporter_ForceCustomDimensionSlotCheckHelp',
`<a href="${url}" rel="noreferrer noopener" target="_blank">`,
externalLink('https://matomo.org/docs/custom-dimensions/'),
'</a>',
);
},
Expand Down
4 changes: 2 additions & 2 deletions vue/src/ImportScheduler/ImportSchedulerGA4.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ import {
NotificationsStore,
AjaxHelper,
parseDate,
externalLink,
} from 'CoreHome';
import { Field } from 'CorePluginsAdmin';

Expand Down Expand Up @@ -258,10 +259,9 @@ export default defineComponent({
'</b>');
},
forceIgnoreOutOfCustomDimSlotErrorHelp() {
const url = 'https://matomo.org/docs/custom-dimensions/';
return translate(
'GoogleAnalyticsImporter_ForceCustomDimensionSlotCheckHelp',
`<a href="${url}" rel="noreferrer noopener" target="_blank">`,
externalLink('https://matomo.org/docs/custom-dimensions/'),
'</a>',
);
},
Expand Down
9 changes: 7 additions & 2 deletions vue/src/ImportStatus/ImportStatusRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,12 @@

<script lang="ts">
import { defineComponent } from 'vue';
import { MatomoUrl, translate, Matomo } from 'CoreHome';
import {
MatomoUrl,
translate,
Matomo,
externalLink,
} from 'CoreHome';

export default defineComponent({
props: {
Expand Down Expand Up @@ -192,7 +197,7 @@ export default defineComponent({
errorMessageBugReportRequest() {
return translate(
'GoogleAnalyticsImporter_ErrorMessageBugReportRequest',
'<a href="https://forum.matomo.org/" rel="noreferrer noopener" target="_blank">',
externalLink('https://forum.matomo.org/'),
'</a>',
);
},
Expand Down

0 comments on commit bd68136

Please sign in to comment.