Quantcast
Channel: Matomo forums - Latest topics
Viewing all 14001 articles
Browse latest View live

Request to Referrers API.php returns different result from API Request

$
0
0

I have a custom report in a custom plugin. This report should show the campaign keywords for a specific campaign name. This happens as follows ($kurzform form is the campaign name):

public function getPortalKampagnen($kurzform, $idSite, $period, $date, $segment = false)
{
    $segment .= "referrerName==".$kurzform;
    $campaigns = \Piwik\Plugins\Referrers\API::getInstance()->getCampaigns($idSite, $period, $date, $segment);
    if($campaigns->getRowsCount()!=0) {
        $result = \Piwik\Plugins\Referrers\API::getInstance()->getKeywordsFromCampaignId($idSite, $period, $date, 1, $segment);
    }
    else{
        $result = new DataTable();
    }
    return $result;
}

public function getHslaKampagnen($idSite, $period, $date, $segment = false)
{
    return $this->getPortalKampagnen("hsla", $idSite, $period, $date, $segment);
}

However, I sometimes have a different result (less) than shown in the subtable of the campaign report. The result is also different from an API request with exactly the same information (date, segment etc.).
What am I doing wrong?

1 post - 1 participant

Read full topic


Matomo is not tracking social media traffic to website reliably

$
0
0

Hello,

we’re using a self hosted Matomo instance. Version numbers as below:

Matomo version: 3.14.0
MySQL version: tba
PHP version: tba

We are measuring far lower number of visits coming from our Facebook advertising campaings than that is recorded by Matomo.

  • I know about this article and about this troubleshooting guide. All checked.
  • We are recording traffic an all pages.
  • We have an opt-out option for the Matomo cookie in use, which hides about 10% of all incoming traffic. We can deal with that…

… but the differences between what is shown by Facebook ads manager’s outbound clicks figures is far more than what we see in Matomo. For a definite period, there were 6322 outbound paid clicks recorded by Facebook (and may have been even more with organic traffic), but only 765 visits were recognised by Matomo coming from Facebook (on the ‘All Channels’ overview page). That’s a huge, 8 times difference (or even larger if we count organic too).

With UTM tagging during the same period there were 4123 outbound paid clicks coming from Facebook, but there were only 370 visits coming from FB registered by Matomo under the “Campaigns” section. It’s an incredible 11 times difference. If I check a specific UTM code on both sides, it’s the same ratio (eg. 878 vs 82).

Due to our company policy, we can’t use Facebook pixel to directly measure “website visits” conversions in Facebook Ads Manager. So this is not an option to double check these figures.

What may be the problem and how to deal with it?

1 post - 1 participant

Read full topic

How do I implement "setEcommercView" with Tag Manager?

setVisitorId overriden last minute?

$
0
0

Hi,

I’m not sure if this is a bug so I’ll ask it here.

I’m struggling to get the setVisitorId function working as I’d expect it. My case is the following:

I track a native Android application that at some point switches to a webview. I want to track the user as a single visitor. In order to do that I have a cookie that is exchanged between native implementation and webview which then in turn sets the visitor id in the Android SDK or the PHP web page respectively.

I can see the calls made to matomo and they show the right visitor id for both calls. However, in my visitors log the webview visitors get a different visitor id. If I repeat this the visitor id is getting generated over and over again for the webview but visits get stacked in the same unique visitor consecutively. This happens despite calling setVisitorId on the web page.

Oddly enough this works on iOS. I used the piwik-3.0.4 and now matomo-4.1.2 version of the Piwik/Matomo Android SDK with no spotted difference.

Is it possible something is wrong with the setVisitorId process and the ID is being regenerated because of missing flags like userId (I set this to null in Android)? How is the visitor id being changed afterwards and yet still being recognized as the same visitor? What am I missing?

I’d be happy if anyone could help as I don’t know what else I can do to get this working.

Thanks and best regards

1 post - 1 participant

Read full topic

Clearing old error messages

$
0
0

I am getting below message because I had some proxy errors when I first tried to install the plugin:

Failed to download plugin from https://plugins.matomo.org/api/2.0/plugins/GoogleAnalyticsImporter/download/1.5.4?coreVersion=3.14.0: curl_exec: OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104. Hostname requested was: plugins.matomo.org

I have since sorted the issue, and resolved the issue but the error appears every time I log in. Is there anyway to clear this message?

Similarly I’m getting this in the diagnostics check:

[GoogleAnalyticsImporter] Required Executables (nohup) Matomo cannot find the nohup executable. The Google Analytics Importer uses nohup to execute the import process so it will continue on its own after a web request finishes. This executable must be present and accessible from PHP in order for the importer to function.

Again this has been dealt with and the import is working away but can’t seem to clear the message.

3 posts - 2 participants

Read full topic

Daten nicht im Data Layer sichtbar

Definitions of default referrer types

$
0
0

Hello there, can someone please point me to where I can find a definition of what data Matomo uses to put visits in their default referrer types (Direct, Search Engines, Websites, Campaigns), so the equivalent to this one for Google Analytics -> https://support.google.com/analytics/answer/3297892, but for Matomo?
I’m especially interested in how Matomo decides what visit will be put into the Campaigns referrer type.

I tried the search here in the forum as well as Matomo blog and FAQ, but wasnt able to find answers to either question.

Thanks in advance!

1 post - 1 participant

Read full topic

Marketing Campaigns Reporting (Matomo Plugin) leads to critical error

$
0
0

After Upgrading Matomo Analytics for Wordpress to 1.3, the entire wp-admin section is broken (the classic “critical error” screen shows up). The website itself get’s displayed without any errors, only administration area of wordpress itself can’t be loaded anymore.

As a “quick and dirty” fix I’ve disabled the “Matomo Campaings Reporting” Plugin within Wordpress (rename “plugins” folder within wordpress-install to “pluginsOff”, open the admin-area of wordpress and go to plugins (this will disable them all in the background). Rename the “pluginsOff” again to “plugins” and start enable one plugin after another to test).
Result: wordpress admin area is running again until you active the “Marketing Campaigns Reporting” Plugin in Wordpress-Backend. If you enable it, the critical error occurs again.

Does anyone had any similar problems or anything like this when upgrading to 1.3.0 ? I’m not able to reproduce this in my lab-environment, but I have to say that the lab-environment is not an exact copy of the website (hoster is using litespeed-webserver, my lab using the litespeed opensource server, configs of webserver might differ, no cache plugin in dev-environment (thus the same error happens in prod-environment if I disable cache) and it’s own wordpress-database which wasn’t copied from production).

Please note: I’m a sysadmin, so if there is any developer who wants to investigat this further please declare what kind of logfiles etc. you need. Since it is a productive environment where this happens, I would have to re-enable the marketplace plugin during off-hours (GMT+2)

				  # Matomo

* Matomo Plugin Version: 1.3.0
* Config exists and is writable.: Yes ("$ABSPATH/wp-content/uploads/matomo/config/config.ini.php" )
* JS Tracker exists and is writable.: Yes ("$ABSPATH/wp-content/uploads/matomo/matomo.js" )
* Plugin directories: Yes ([{"pluginsPathAbsolute":"$ABSPATH\/wp-content\/plugins\/matomo\/plugins","webrootDirRelativeToMatomo":"..\/"},{"pluginsPathAbsolute":"$ABSPATH\/wp-content\/plugins","webrootDirRelativeToMatomo":"..\/..\/"}])
* Tmp directory writable: Yes ($ABSPATH/wp-content/cache/matomo)
* Matomo Version: 3.14.0
* Matomo Blog idSite: 1
* Matomo Install Version: No

## Endpoints

* Matomo JavaScript Tracker URL:  ($site_url/wp-content/uploads/matomo/matomo.js)
* Matomo JavaScript Tracker - WP Rest API:  ($site_url/index.php/wp-json/matomo/v1/hit/)
* Matomo HTTP Tracking API:  ($site_url/wp-content/plugins/matomo/app/matomo.php)
* Matomo HTTP Tracking API - WP Rest API:  ($site_url/index.php/wp-json/matomo/v1/hit/)

## Crons

* Server time: 2020-09-03 16:43:26
* Blog time: 2020-09-03 17:43:26 (Below dates are shown in blog timezone)
* Sync users & sites: Next run: 2020-09-04 02:15:15 (8 Stunden 31 Minuten) ( Last started: 2020-09-03 02:29:33 (-15 Stunden 13 Minuten). Last ended: 2020-09-03 02:29:34 (-15 Stunden 13 Minuten). Interval: daily)
* Archive: Next run: 2020-09-03 18:15:15 (31 Minuten 49s) ( Last started: 2020-09-03 17:22:03 (-21 Minuten 23s). Last ended: 2020-09-03 11:21:58 (-6 Stunden 21 Minuten). Interval: hourly)
* Update GeoIP DB: Next run: 2020-09-29 04:41:18 (25 Tage 10 Stunden) ( Last started: 2020-08-30 05:05:46 (-4 Tage 12 Stunden). Last ended: 2020-03-26 02:19:30 (-161 Tage 15 Stunden). Interval: matomo_monthly)

## Mandatory checks

* PHP-Version >= : ok 
* PDO Erweiterung: ok 
* PDO\MYSQL Erweiterung: ok 
* MYSQLI Erweiterung: ok 
* Weitere erforderliche Anforderungen: ok 
* Erforderliche Funktionen: ok 
* Benötigte PHP Konfiguration (php.ini): ok 
* Verzeichnisse mit Schreibzugriff: ok 
* Verzeichnisse mit Schreibzugriff auf Tag Manager: ok 

## Optional checks

* Tracker-Status: ok 
* Speicherlimit: ok 
* Zeitzone: ok 
* Öffnen einer URL: ok 
* PageSpeed deaktiviert: ok 
* GD > 2.x + Freetype (graphics): ok 
* Andere Erweiterungen: ok 
* Warning Andere Funktionen: warning  (shell_exec Sie müssen diese eingebaute Funktion aktivieren set_time_limit mail parse_ini_file glob gzopen md5_file )
* Dateisystem: ok 
* Archiv Cron: ok 
* Letzter erfolgreicher Abschluss der Archivierung: ok 
* Maximale Packetgröße: ok 
* Standorterkennung: ok 
* Update über HTTPS: ok 
* Schreibbarer JavaScript-Tracker ("/matomo.js"): ok 
* Supports Async Archiving: No
* Location provider ID: geoip2php
* Location provider available: Yes
* Location provider working: Yes
* Had visit in last 5 days: Yes

## Matomo Settings

* Track mode: default
* Track codeposition: footer
* Track api endpoint: default
* Track js endpoint: default
* Version history: 1.3.0, 1.2.0, 1.1.3, 1.1.2, 1.1.1
* Core version: 3.14.0
* Last tracking settings update: 1590897100
* Last settings update: 1590897100
* Track content: visible
* Track ecommerce: No
* Track 404: Yes
* Show get started page: 0

## Logs

* update_geoip2: 2020-08-30 05:05:47 (GeoIP2AutoUpdater: failed to unzip '$ABSPATH/wp-content/cache/matomo/latest/GeoIP2-City.mmdb.tar.gz' after downloading 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&suffix=tar.gz&license_key=okI8j1UHemAhs': Couldn't list content for '$ABSPATH/wp-content/cache/matomo/latest/GeoIP2-City.mmdb.tar.gz': Invalid block size : 20 => GeoIP2AutoUpdater.php:172; GeoIP2AutoUpdater.php:99; ScheduledTasks.php:161; class-wp-hook.php:285; class-wp-hook.php:311; plugin.php:544; wp-cron.php:138;)

# WordPress

* Home URL: $site_url
* Site URL: $site_url
* WordPress Version: 5.5.1
* Number of blogs: 1
* Multisite Enabled: No
* Network Enabled: No
* WP_DEBUG: No
* WP_DEBUG_DISPLAY: Yes
* WP_DEBUG_LOG: No
* DISABLE_WP_CRON: -
* FORCE_SSL_ADMIN: Yes
* WP_CACHE: Yes
* CONCATENATE_SCRIPTS: -
* COMPRESS_SCRIPTS: -
* COMPRESS_CSS: -
* ENFORCE_GZIP: -
* WP_LOCAL_DEV: -
* DIEONDBERROR: -
* WPLANG: -
* ALTERNATE_WP_CRON: -
* WP_CRON_LOCK_TIMEOUT: 60
* WP_DISABLE_FATAL_ERROR_HANDLER: -
* Permalink Structure: /index.php/%year%/%monthnum%/%day%/%postname%/
* Possibly uses symlink: No
* Compatible content directory: Yes

# WordPress Plugins

* Contact Form 7: 5.2.2
* Cookie Notice: 1.3.2
* Google XML Sitemaps: 4.1.1
* IPtoCompany (Matomo Plugin): 0.4.5
* LiteSpeed Cache: 3.4.1
* Marketing Campaigns Reporting (Matomo Plugin): 4.0.1
* Matomo Analytics - Ethical Stats. Powerful Insights.: 1.3.0
* Matomo Marketplace for WordPress: 1.0.6
* Rank Math SEO: 1.0.47.1
* Active Plugins: 8 (IPtoCompany contact-form-7 cookie-notice google-sitemap-generator litespeed-cache matomo-marketplace-for-wordpress matomo seo-by-rank-math)

# Server

* Server Info: LiteSpeed
* PHP OS: Linux
* PHP Version: 7.4.8
* PHP SAPI: litespeed
* PHP Binary Name: lsphp
* PHP Found Binary: php -q
* Timezone: UTC
* WP timezone: +01:00
* Locale: de_CH
* User Locale: de_CH
* Memory Limit: 256M (At least 128MB recommended. Depending on your traffic 256MB or more may be needed.)
* WP Memory Limit: 64M
* WP Max Memory Limit: 256M
* Time: 1599151406
* Max Execution Time: 30
* Max Post Size: 16M
* Max Upload Size: 16777216
* Max Input Vars: 1000
* Disabled PHP functions: Yes (exec, shell_exec, system, dl, passthru, proc_open, proc_close)
* zlib.output_compression is off: Yes
* Curl Version: 7.62.0, OpenSSL/1.0.2k
* Suhosin installed: No

# Database

* MySQL Version: 5.7.26
* Mysqli Connect: Yes
* Force MySQL over Mysqli: No
* DB Prefix: wp_
* DB CHARSET: utf8mb4
* DB COLLATE: 
* SHOW ERRORS: No
* SUPPRESS ERRORS: No
* Uses Socket: No
* Uses IPv6: No
* Matomo tables found: 126
* Matomo users found: 2
* Matomo sites found: 1
* Required permissions: OK

# Browser

* Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
* Language: de,en-us,en

	

1 post - 1 participant

Read full topic


Auto archiving on docker

$
0
0

Hi,
I’ve installed the docker version of Matomo but I didn’t exactly understand how to proceed.

Do I have to do it from the host or from the container with

sudo docker exec -it matomo_comp_app_1  /bin/ash

?
Can you please help me?
Thank you,
Alessandro

1 post - 1 participant

Read full topic

Variablen aus Shopware über Google Tag Manager zu Matomo

$
0
0

Guten Morgen,
eine wahrscheinlich ungewöhnliche Frage:

Für einen TV Werbkampagne richte ich zur Zeit das Tracking ein.

Shopsystem: Shopware
Tag Manager: Google Tag Manager (Wir tracken eigentlich mit Google)
Tracking: Über Matomo (Firma Spoteffects)

Ich habe ein Script für das allgemeine Tracking erhalten, welches auch funktioniert.
Ein Codeschnipsel für das E-Commerce Tracking habe ich auch, welches in dem “allgemeinen Tracking Code” untergebracht werden muss.

Traffic kommt an. Auch unsere Goals.
Lediglich die Bestellungen (Bestellnummer & Bestellwert) kommen bei Matomo nicht an.
Vermutlich weil ich falsche Variablen aus Shopware nehme. Und so langsam sehe ich den Wald vor lauter Bäumen nicht.

Hier ist der Code:

<!-- Piwik -->
<script type="text/javascript">
var _spef = _spef || [];
_spef.push(["trackPageView"]);
_spef.push(['trackEcommerceOrder', 
            **{{TransactionId}}**,
            **{{TransactionAmount}}**
]);
_spef.push(["enableLinkTracking"]);
(function () {
var u = "//trck.spoteffects.net/analytics/";
_spef.push(['setTrackerUrl', u + 'piwik.php']);
_spef.push(['setSiteId',**UNSERE ID**]);
var d = document, g = d.createElement("script"), s = d.getElementsByTagName("script")[0];
g.type = "text/javascript";
g.defer = true;
g.async = true;
g.src = u + "spef.min.js";
s.parentNode.insertBefore(g, s);
})();
</script>
<!-- End Piwik Code -->

Kennt sich jemand mit den Shopware Variablen aus dem Checkout aus?
Unsere Online Marketing/ IT Firma befindet sich gerade in einer Übergabe mit einer neuen Agentur, sodass die gerade andere Prios haben.

Ich danke jetzt schon mal für jede Hilfe!

VG
Tim

2 posts - 1 participant

Read full topic

Content reports empty

$
0
0

I’m trying to track interactions with an accordion menu. I can see those interactions in the live tracker and the visitor log, but the content reports are empty. Anyone got an idea why?

Had to combine 2 screenshots because I’m only allowed to post 1 image.

1 post - 1 participant

Read full topic

How to disable some functions in Matomo.js

Black Screen In Windows After Update!

$
0
0

Hello Friends,

I am getting a blackscreen after Windows Update. I found this, should I go ahead?

1 post - 1 participant

Read full topic

Download report with curl

$
0
0

Hi.

I want to download Event actions report with curl because I need to import that data into a database. If I download the report from Matomo web interface I get 20 records and it is OK.
Then I tried to download report with CURL from command line using the URL displayed with the option “Show Export URL” but curl only downloads 10 records.

The URL is:

http://localhost:800/matomo/index.php?date=2020-08-01,2020-08-24&expanded=1&filter_limit=-1&format=TSV&format_metrics=1&idSite=1&language=es&method=Events.getAction&module=API&period=range&segment=&token_auth=anonymous&translateColumnNames=1

In command line I run:

curl -o data.csv “http://localhost:800/matomo/index.php?date=2020-08-01,2020-08-24&expanded=1&filter_limit=-1&format=TSV&format_metrics=1&idSite=1&language=es&method=Events.getAction&module=API&period=range&segment=&token_auth=anonymous&translateColumnNames=1

Is it possible to get the same results from web page download and from curl?

Does anyone ever downloaded reports with curl? . Is there any other option than web interface?

Thanks a lot.

Diego

1 post - 1 participant

Read full topic

Provide UserID via Tag Manager - what to push after Logout and any further pageviews?

$
0
0

Hello everybody,

When a user is logged in, I want to push the user ID into the data layer before the actual Pageview Tag is triggered.
The settingsvariable will use a data layer variable for existing UserIDs.

My question is what do I have to do to prevent the storage of the UserID on / after logout?

Is it enough to specify a data layer variable with the value of undefined? (not a string)
Because if the UserID value is not available for any other pageview, it should not be taken into account for Matomo.
But I am worried if Matomo safely excludes all actions for this logged out user.

Would it be enough to just fire on the same site, before the next pageview.

_paq.push(['resetUserId']);

The page will reload and the dataLayer value is again undefined.

1 post - 1 participant

Read full topic


How to manage tracking links

Week period dates were not shown right position in graph

$
0
0

week period dates were not shown right position in graph

element.style {
text-align: left;
position: absolute;
width: 110px;
height: 11px;
left: -33.9423px;

1 post - 1 participant

Read full topic

✋ Pulling Data out of Matomo?

$
0
0

How can I initiate a simple data request and return the value of a variable, so I can save it?

For example, how would I simply output the Visitor Profile ID - so we can ultimately push it into our MySQL database with the rest of the customer details from that transaction?

I’m not a programmer so not exactly sure but, would this be the right way to accomplish this with PHP?

<?php $token_auth = '**MyTokenHere**'; getVisitorId() ?>

I am willing to pay for help if anyone can assist.

I am simply trying to add a link in our CRM that points to Matomo’s visitor log, so we can see the detailed insights that led up to each sales transaction.

My dynamic link/URL would be as shown below (the last part of the URL parameter would output the person’s unique visitor ID:

https://myserver.com/index.php?module=CoreHome&action=index&date=2020-07-16&period=day&idSite=1#?idSite=1&period=day&date=2020-07-16&segment=&category=General_Visitors&subcategory=Live_VisitorLog&popover=visitorProfile$3A [VISITOR PROFILE ID HERE]

1 post - 1 participant

Read full topic

Matomo stopped reliably tracking data after switching to WordPress alt cron

$
0
0

I’m hoping someone can help me even though I’m not a technical person. My self-hosted Matomo was tracking my WordPress site just fine until I started having problems with the WP scheduler. A technical support guy I hired added an alternative cron job to get the scheduler working. Since he did that, Matomo is not showing reliable numbers.

Is there something that can be done to get reliable tracking in Matomo again? Would I be better off switching to Matomo for WordPress (it wasn’t available when I started) or would that not solve the problem?

1 post - 1 participant

Read full topic

GeoIP2 plugin issue in Matomo

$
0
0

Hello,
We have Matomo 3.12.0 setup on my environment. We are using GeoIP2 (php) plugin for the location tracking from visitors. but we have an issue here, some of the users are browsing from their websites & monitoring analytics. But it is showing default location as “united States” instead of original locations. I read some of the official documents like after 1.9 or later versions it is using GeoIP2 for tracking locations instead of languages. So we tried to download latest version of this plugin from Maxmind website “https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz” in the same way which we have done earlier. But we are not able to download latest version from that website. We have location logs also when we are browsing website but still indicating wrong location.
So please help us how to configure GeoIP2 plugin properly & how to track exact locations from Matomo

Thanks & Best Regards
Revathi

.

3 posts - 2 participants

Read full topic

Viewing all 14001 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>