قرینه از
https://github.com/matomo-org/matomo.git
synced 2025-08-21 22:47:43 +00:00

* Add matomo.org link campaign tracking functionality and tests * Added optional override parameters for trackmatomolink, added new config option to disable matomo.org link campaign tracking, updated tests * Added twig functions to format external urls, added missing matomo.org subdomains to allow list * Revert unnecessary extra parameters for externallink twig function in favour of using twig string concatenation * Update all matomo.org links in twig templates * Add an externalLink() function for vue.js to easily add campaign parameters to matomo.org urls in the front end * Update vue.js externalLink() function to support the disable_tracking_matomo_app_links config option * Attempt to keep linter happy * More linter tweaks * Bump stalled tests * built vue files * Remove unnecessary domains from externalLink list, add missing type definition, update and fix privacy setting link * Improve externalLink TypeScript method to use URL object for domain manipulation instead of custom regex * Make externalLink and externalRawLink TypeScript functions variadic * built vue files * Update matomo.org links in vue components with campaign parameters * Move externalRawLink function to piwik helper to make it available for vanilla JS, update matomo.org links in JS * Update matomo.org links in PHP classes to add campaign parameters * Increment version * Update submodule references * Fix for infinite loop when processing URLs in config settings * Update mtm_medium to include 'App.' prefix, linter pacification changes for externalLink * Fix link formatting in GeoIp2 vue component, update system tests * built vue files * Update advertising test, fix missing import in Tour * UI test fixes for tracking code twig templates and license key formatting * built vue files * Bump stalled tests * Fix missing use statements, remove incorrect custom params from link * built vue files * Change update version back to 5.0.0-rc5 * Update plugins/MultiSites/vue/src/Dashboard/Dashboard.vue Co-authored-by: Michal Kleiner <michal@innocraft.com> * Update plugins/MultiSites/vue/src/Dashboard/Dashboard.vue Co-authored-by: Michal Kleiner <michal@innocraft.com> * Update plugins/MultiSites/vue/src/Dashboard/Dashboard.vue Co-authored-by: Michal Kleiner <michal@innocraft.com> * Update plugins/Morpheus/javascripts/piwikHelper.js Co-authored-by: Michal Kleiner <michal@innocraft.com> * built vue files * Add check for _pk_externalRawLink before calling, Fix inconsistent source string * Fix linter complaint * built vue files * Bump stalled tests * Update submodule references to 5.x-dev branches * Update visitorgenerator submodule reference to 5.x-dev branche --------- Co-authored-by: bx80 <bx80@users.noreply.github.com> Co-authored-by: Michal Kleiner <michal@innocraft.com>
94 خطوط
4.9 KiB
Twig
94 خطوط
4.9 KiB
Twig
{% extends 'admin.twig' %}
|
|
|
|
{% block head %}
|
|
{{ parent() }}
|
|
<link rel="stylesheet" href="plugins/CoreAdminHome/stylesheets/jsTrackingGenerator.css" />
|
|
{% endblock %}
|
|
|
|
{% set title %}{{ 'CoreAdminHome_TrackingCode'|translate }}{% endset %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="card">
|
|
<div class="card-content">
|
|
<h2 vue-entry="CoreHome.EnrichedHeadline"
|
|
help-url="{{ 'https://matomo.org/docs/tracking-api/'|trackmatomolink }}"
|
|
rate="{{ 'CoreAdminHome_TrackingCode'|translate }}">{{ 'CoreAdminHome_TrackingCode'|translate }}</h2>
|
|
<p style="padding-left: 0;">{{ 'CoreAdminHome_TrackingCodeIntro'|translate }}</p>
|
|
</div>
|
|
<div class="card-action">
|
|
{{ 'General_GoTo2'|translate }}:
|
|
<a href="#/javaScriptTracking">{{ 'CoreAdminHome_JavaScriptTracking'|translate }}</a>
|
|
<a href="#/imageTracking">{{ 'CoreAdminHome_ImageTracking'|translate }}</a>
|
|
<a href="#/importServerLogs">{{ 'SitesManager_LogAnalytics'|translate }}</a>
|
|
<a href="#/mobileAppsAndSdks">{{ 'SitesManager_MobileAppsAndSDKs'|translate }}</a>
|
|
<a href="#/trackingApi">{{ 'CoreAdminHome_HttpTrackingApi'|translate }}</a>
|
|
<a href="#/singlePageApplication">{{ 'SitesManager_SiteWithoutDataSinglePageApplication'|translate }}</a>
|
|
<a href="#/google-tag-manager">{{ 'SitesManager_SiteWithoutDataGoogleTagManager'|translate }}</a>
|
|
<a href="#/wordpress">WordPress</a>
|
|
<a href="#/cloudflare">Cloudflare</a>
|
|
<a href="#/vue">Vue.js</a>
|
|
<a href="#/react">React.js</a>
|
|
{{ postEvent('Template.endTrackingCodePageTableOfContents') }}
|
|
</div>
|
|
</div>
|
|
|
|
<input type="hidden" name="numMaxCustomVariables"
|
|
value="{{ maxCustomVariables }}">
|
|
|
|
<div
|
|
vue-entry="CoreAdminHome.JsTrackingCodeGenerator"
|
|
default-site="{{ defaultSiteDecoded|json_encode }}"
|
|
max-custom-variables="{{ maxCustomVariables|json_encode }}"
|
|
server-side-do-not-track-enabled="{{ serverSideDoNotTrackEnabled|json_encode }}"
|
|
></div>
|
|
|
|
<div
|
|
vue-entry="CoreAdminHome.ImageTrackingCodeGenerator"
|
|
default-site="{{ defaultSiteDecoded|json_encode }}"
|
|
></div>
|
|
|
|
<div vue-entry="CoreHome.ContentBlock" content-title="{{ 'SitesManager_LogAnalytics'|translate }}"
|
|
anchor="importServerLogs">
|
|
<p>
|
|
{{ 'CoreAdminHome_ImportingServerLogsDesc'|translate(externallink('https://matomo.org/log-analytics/'),'</a>')|raw }}
|
|
</p>
|
|
</div>
|
|
|
|
<div vue-entry="CoreHome.ContentBlock" content-title="{{ 'SitesManager_MobileAppsAndSDKs'|translate }}" anchor="mobileAppsAndSdks">
|
|
<p>{{ 'SitesManager_MobileAppsAndSDKsDescription'|translate(externallink('https://matomo.org/integrate/#programming-language-platforms-and-frameworks'), '</a>')|raw }}</p>
|
|
</div>
|
|
|
|
<div vue-entry="CoreHome.ContentBlock" content-title="{{ 'CoreAdminHome_HttpTrackingApi'|translate }}" anchor="trackingApi">
|
|
<p>{{ 'CoreAdminHome_HttpTrackingApiDescription'|translate(externallink('https://developer.matomo.org/api-reference/tracking-api'),'</a>')|raw }}</p>
|
|
</div>
|
|
|
|
<div vue-entry="CoreHome.ContentBlock" content-title="{{ 'SitesManager_SiteWithoutDataSinglePageApplication'|translate }}" anchor="singlePageApplication">
|
|
<p>{{ 'CoreAdminHome_SinglePageApplicationDescription'|translate(externallink('https://developer.matomo.org/guides/spa-tracking'),'</a>')|raw }}</p>
|
|
</div>
|
|
|
|
<div vue-entry="CoreHome.ContentBlock" content-title="{{ 'SitesManager_SiteWithoutDataGoogleTagManager'|translate }}" anchor="google-tag-manager">
|
|
<p>{{ 'CoreAdminHome_GoogleTagManagerDescription'|translate(externallink('https://matomo.org/faq/new-to-piwik/how-do-i-use-matomo-analytics-within-gtm-google-tag-manager/'),'</a>')|raw }}</p>
|
|
</div>
|
|
|
|
<div vue-entry="CoreHome.ContentBlock" content-title="WordPress" anchor="wordpress">
|
|
<p>{{ 'CoreAdminHome_WordpressDescription'|translate(externallink('https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-tracking-code-on-wordpress/'),'</a>')|raw }}</p>
|
|
</div>
|
|
|
|
<div vue-entry="CoreHome.ContentBlock" content-title="Cloudflare" anchor="cloudflare">
|
|
<p>{{ 'CoreAdminHome_CloudflareDescription'|translate(externallink('https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-tracking-code-on-my-cloudflare-setup/'),'</a>')|raw }}</p>
|
|
</div>
|
|
|
|
<div vue-entry="CoreHome.ContentBlock" content-title="Vue.js" anchor="vue">
|
|
<p>{{ 'CoreAdminHome_VueDescription'|translate(externallink('https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-tracking-code-on-websites-that-use-vue-js/'),'</a>')|raw }}</p>
|
|
</div>
|
|
|
|
<div vue-entry="CoreHome.ContentBlock" content-title="React.js" anchor="react">
|
|
<p>{{ 'CoreAdminHome_ReactDescription'|translate(externallink('https://matomo.org/faq/new-to-piwik/how-do-i-start-tracking-data-with-matomo-on-websites-that-use-react/'),'</a>')|raw }}</p>
|
|
</div>
|
|
|
|
|
|
{{ postEvent('Template.endTrackingCodePage') }}
|
|
|
|
{% endblock %}
|