Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/1.4.0 #9

Merged
merged 18 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java'
id 'maven-publish'
id 'com.enonic.xp.app' version '3.2.0'
id 'com.enonic.xp.app' version '3.4.0'
}

publishing {
Expand Down Expand Up @@ -29,14 +29,18 @@ dependencies {
implementation "com.enonic.xp:portal-api:${xpVersion}"
include "com.enonic.xp:lib-content:${xpVersion}"
include "com.enonic.xp:lib-portal:${xpVersion}"
include "com.enonic.lib:lib-thymeleaf:2.1.0"
include 'com.enonic.lib:lib-http-client:3.2.2'
}

repositories {
mavenLocal()
mavenCentral()
xp.enonicRepo()
maven { url 'https://repo.enonic.com/public' }
}

wrapper {
gradleVersion = '7.3.1'
gradleVersion = '8.3'
distributionType = Wrapper.DistributionType.BIN
}
Binary file added docs/images/matomo_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 16 additions & 1 deletion docs/installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ You will find the Container ID on the Tag Manager / Manage Containers page.
Enter the Container ID into the app config in Enonic XP, then publish the site and you're done!
![](images/matomo_10.png)

# Installing and using the widget

1. Create a config file called `no.bouvet.app.matomo.cfg` in the config folder of your XP installation

2. Add your matomo-token to this file. No quotes
```
matomo.token = token
```

3. Build and deploy the app

4. Open the context panel for the site on the right-hand side of the Content Studio, and select content.

![](images/matomo_11.png)

# Content Security Policy (CSP)

_If your site doesn't have a CSP, you should definitively have one._
Expand Down Expand Up @@ -83,4 +98,4 @@ Enter the following values:

![](images/matomo_08.png)

The Matomo analytics app will check whether the Cookie Panel app is installed and add functions to the window object if it is. This will allow the Cookie Panel app to toggle user consent for storing tracking cookies.
The Matomo analytics app will check whether the Cookie Panel app is installed and add functions to the window object if it is. This will allow the Cookie Panel app to toggle user consent for storing tracking cookies.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ appName = no.bouvet.app.matomo
displayName = Matomo Analytics App
vendor = Bouvet Norge AS
vendorUrl = https://www.bouvet.no
xpVersion = 7.5.0
version = 1.3.1
xpVersion = 7.9.0
version = 1.4.0
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading