Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Piwik integration missing!? #3067

Closed
MaluNoPeleke opened this Issue · 28 comments

4 participants

@MaluNoPeleke

I have installed WP-Piwik and enabled eCommerce-Tracking in Piwik but a test payment with WooCommerce wasn't tracked at all.
Is there any option which has to be enabled?
I can only find it for Google Analytics...
Thanks for help!

@mikejolley
Owner

Are you admin (logged in)?

@MaluNoPeleke

No, I have tested it as a guest.

@mikejolley
Owner

I don't use PIWIK to test. @coenjacobs?

@MaluNoPeleke

You can see it in action on www.handwertig.de

@coenjacobs

Can you give a var_dump of get_option( 'wp-piwik_global-settings' ) ?

@MaluNoPeleke

Sorry but how can I do that?

@mikejolley
Owner

This is why github isn't for support issues :)

Stick

<?php if ( current_user_can( 'manage_options' ) ) var_dump( get_option( 'wp-piwik_global-settings' ) ); ?>

in your theme somewhere, functions.php or header.php and tell us whats there.

@MaluNoPeleke

Hmm, there seems to be something wrong:

[wp-piwik/wp-piwik.php] => Array
(
[ModuleID] =>
[ModuleCategory] =>
[ModuleContext] =>
[ModuleLazyInit] =>
[ModuleClassName] =>
[ModulePriority] =>
[ModuleCheckerUrlPattern] =>
[ModuleHidden] =>
[ModuleAlwaysActive] =>
[ModuleRequiresPro] =>
[Name] => WP-Piwik
[PluginURI] => http://wordpress.org/extend/plugins/wp-piwik/
[Version] => 0.9.9.1
[Description] => Adds Piwik stats to your dashboard menu and Piwik code to your wordpress header.
[Author] => André Bräkling
[AuthorURI] => http://www.braekling.de
[TextDomain] =>
[DomainPath] =>
[Network] =>
[Title] => WP-Piwik
[AuthorName] => André Bräkling
)
wp-piwik

@mikejolley
Owner

Your settings page looks nothing like mine, and I double checked the option name is correct.

This is the one we integrate with: http://wordpress.org/extend/plugins/wp-piwik/ Latest version.

You'll need to check with the plugin author why the option is empty/wrong. This isn't a problem with our integration.

@mikejolley mikejolley closed this
@MaluNoPeleke

Strange, I use exactly that plugin and the author tells me to ask the staff from WooThemes...
How does your settings page look like?
The var_dump option was empty for a lot of plugins, maybe I have made mistake, but the screenshot should be identical to your mentioned plugin (I have merged the different tabs to one screenshot)!?

@coenjacobs

@MaluNoPeleke You need to execute the code like @mikejolley said above. This is not plugin dependant, it should provide the exact same output every time you run it. I recommend you put it in the functions.php file of your theme.

@MaluNoPeleke

The if statement didn't work but here it is:

array(32) { ["revision"]=> int(90910) ["add_tracking_code"]=> string(1) "1" ["last_settings_update"]=> int(1367425479) ["piwik_token"]=> string(32) "77e97bbaae053c7b16f63e59c3c0e940" ["piwik_url"]=> string(31) "http://www.handwertig.de/piwik/" ["piwik_path"]=> string(0) "" ["piwik_mode"]=> string(4) "http" ["piwik_useragent"]=> string(3) "php" ["piwik_useragent_string"]=> string(8) "WP-Piwik" ["connection_timeout"]=> int(5) ["dashboard_widget"]=> string(6) "last30" ["dashboard_chart"]=> string(1) "1" ["dashboard_seo"]=> bool(false) ["stats_seo"]=> bool(false) ["capability_stealth"]=> array(1) { ["administrator"]=> string(1) "1" } ["capability_read_stats"]=> array(1) { ["administrator"]=> string(1) "1" } ["piwik_shortcut"]=> string(1) "1" ["default_date"]=> string(9) "yesterday" ["auto_site_config"]=> string(1) "1" ["track_404"]=> string(1) "1" ["track_search"]=> string(1) "1" ["track_mode"]=> int(1) ["track_post"]=> bool(false) ["track_proxy"]=> bool(false) ["track_cdnurlssl"]=> string(0) "" ["track_noscript"]=> string(1) "1" ["disable_timelimit"]=> bool(false) ["disable_ssl_verify"]=> string(2) "on" ["disable_cookies"]=> bool(false) ["toolbar"]=> string(1) "1" ["shortcodes"]=> string(1) "1" ["track_cdnurl"]=> string(0) "" } 
@MaluNoPeleke

So does it look different or not than yours @mikejolley or should I simply change an option @coenjacobs ?
The author of the plugin is no help...
Thanks

@basequatro

Hi, here is what i get using WP 3.5.1 / WC 2.0.9 / Piwik 1.11.1 / WP-Piwik 0.9.9.3.

i've just changed api and url above. With all set and only Wp-Piwik and Woocommerce installed isn't getting any data from orders.

My setup of the plugin its default method, only enable tracking in footer.

and in statistics tab i'm getting this error
Fatal error: Can't use method return value in write context in /home/wopicom/public_html/exemplos/loja/wp-content/plugins/wp-piwik/settings/views.php on line 48

Here's the dump

array(33) { ["revision"]=> int(90930) ["plugin_display_name"]=> string(8) "WP-Piwik" ["add_tracking_code"]=> string(1) "1" ["last_settings_update"]=> int(1368171804) ["piwik_token"]=> string(32) "myapistring43214832748932423423" ["piwik_url"]=> string(29) "http://website.com/stats/" ["piwik_path"]=> string(0) "" ["piwik_mode"]=> string(4) "http" ["piwik_useragent"]=> string(3) "php" ["piwik_useragent_string"]=> string(8) "WP-Piwik" ["connection_timeout"]=> int(5) ["dashboard_widget"]=> bool(false) ["dashboard_chart"]=> bool(false) ["dashboard_seo"]=> bool(false) ["stats_seo"]=> bool(false) ["capability_stealth"]=> array(0) { } ["capability_read_stats"]=> array(1) { ["administrator"]=> bool(true) } ["piwik_shortcut"]=> bool(false) ["default_date"]=> string(9) "yesterday" ["auto_site_config"]=> string(1) "1" ["track_404"]=> bool(false) ["track_search"]=> bool(false) ["track_mode"]=> int(0) ["track_post"]=> bool(false) ["track_proxy"]=> bool(false) ["track_cdnurlssl"]=> string(0) "" ["track_noscript"]=> bool(false) ["disable_timelimit"]=> bool(false) ["disable_ssl_verify"]=> bool(false) ["disable_cookies"]=> bool(false) ["toolbar"]=> bool(false) ["shortcodes"]=> bool(false) ["track_cdnurl"]=> string(0) "" }

together with the dump i have this error
functions.php:45) in wp-content/plugins/woocommerce/classes/class-wc-session-handler.php on line 63

All others default statistics are ok

@MaluNoPeleke

Can you please reopen this issue and try to solve the problem?

@coenjacobs

I am still investigating this issue and this is not affected by this issue being closed.

@MaluNoPeleke

Thanks for the update, didn't know that.

@coenjacobs

I have just taken it for a test run and it works just fine, as @mikejolley already confirmed. This is not a bug, I had it working within minutes, so this case is closed for me.

Our integration works fine. The plugin works fine for me as well. Have you tried using Twenty Twelve as a theme as well to test if it's a theme related issue? If not, disable everything and see if it works then.

@basequatro

Thanks for your response @coenjacobs , ive made a fresh install in my localhost and 'im getting the same effect. Not tracking just ecommerce.

Anyway, i posted a full debug here http://forum.piwik.org/read.php?2,103672 to see i've their developers try to find out was its causing this strange behavior.

@MaluNoPeleke

@mikejolley @coenjacobs
Just to make sure I have understood it correctly: WooCommerce should add automatically http://piwik.org/docs/ecommerce-analytics/#toc-tracking-product-page-views-category-page-views-optional on product pages?
If yes something must be wrong on my site. I have added a SKU to http://www.handwertig.de/shop/schmuck/schwarz-weiss-ohrstecker-ethekwini/ but the tracking code doesn't show any ecommerce tracking.
Is it WooCommerce, Theme or WP-Piwik fault?
Is it possible to add SKUs automatically? A strange thing is that the data field is empty even if I add a SKU to the product:
<a href="/shop/schmuck/schwarz-weiss-ohrstecker-ethekwini/?add-to-cart=128" rel="nofollow" data-product_id="128" data-product_sku="" class="add_to_cart_button button product_type_simple">In den Warenkorb</a>

@coenjacobs

That is correct. I do not know what is causing this problem for you, since our Piwik integration (in core WooCommerce plugin) works out of the box on a blank install of WordPress using Twenty Twelve as theme. Both @mikejolley and me got it up and running within minutes without any extra effort, so I highly doubt that it's an issue in WooCommerce core.

Please try this out, using your own account and just WooCommerce, the WP-Piwik integration (which is still needed of course) and the Twenty Twelve theme. Then start activating all your plugins and what not more, until you've found the culprit that breaks this integration.

@mikejolley
Owner

@coenjacobs are you sure thats true.. it was my understanding this was for tracking purchases after checkout (thanks page) - not product views.

@MaluNoPeleke

@mikejolley @coenjacobs
Sorry, maybe I should have clarified it in my first issue post. Yes, I mean the complete possibility of ecommerce tracking with Piwik, not only after checkout.

@coenjacobs

Sorry for late reply and no that's not possible. This is just checkout tracking, always has been.

@MaluNoPeleke

Ah okay, that's what I was asking from the beginning.
And there are no plans to extend that?
Would be great!

@coenjacobs

We'll look at it after WooCommerce 2.1 has been released. The Piwik integration has been taken out then and we can easily push in new features into the separate Piwik integration plugin then.

@MaluNoPeleke

Any updates about this?

@coenjacobs

This plugin is in a separate repository now: https://github.com/coenjacobs/wc-piwik-integration

Please file a new issue there and reference this one, we can take it from there.

@MaluNoPeleke MaluNoPeleke referenced this issue in coenjacobs/wc-piwik-integration
Closed

Full Piwik integration #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.