Title: Facebook tracking WPML
Last modified: August 24, 2016

---

# Facebook tracking WPML

 *  Resolved [energy3k](https://wordpress.org/support/users/energy3k/)
 * (@energy3k)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/)
 * Hi Ben,
 * think that the plugin is great since it is fast and slim.
    My problem ist that
   I do not get any stats from facebook. Since I am using WPML, I thought that this
   might be the problem. otherwise maybe the problemis that it is a subdomain? Pinterest
   works fine, but FB not. I do not connect via FB app. the site is [http://colcaffe.project3k.com/](http://colcaffe.project3k.com/)
 * thanks for you help
    Andreas
 * [https://wordpress.org/plugins/social-metrics-tracker/](https://wordpress.org/plugins/social-metrics-tracker/)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Author [Ben Cole](https://wordpress.org/support/users/bcole808/)
 * (@bcole808)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069423)
 * Hi Andreas,
 * Is there any error message displayed in the connection status area for Facebook?
   If you click on the connection status it will show you more details about each
   social network connection.
 *  Thread Starter [energy3k](https://wordpress.org/support/users/energy3k/)
 * (@energy3k)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069441)
 * Hi Ben,
 * if you mean there were there is the status ‘Data is being synced in the background’,
   then clicking there it tells me that last sync was done at 6:38 pm, but no error
 *  Plugin Author [Ben Cole](https://wordpress.org/support/users/bcole808/)
 * (@bcole808)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069445)
 * Okay, so it sounds like the plugin is reporting that Facebook is working, however
   you are still seeing that no Facebook data is actually being collected.
 * Can you confirm that one of your URLs does in fact have some shares (go to [http://www.sharedcount.com](http://www.sharedcount.com)
   and enter one of your post URLs) and then confirm that in the plugin it is reporting
   the Facebook count for that post as zero?
 * Would you also be willing to share a link to one of your posts so I can check?(
   You can post it here or if you prefer you can email it to me: [ben@colehost.com](https://wordpress.org/support/topic/facebook-tracking-wpml/ben@colehost.com?output_format=md))
 *  Thread Starter [energy3k](https://wordpress.org/support/users/energy3k/)
 * (@energy3k)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069448)
 * I checked sharedcount before i wrote my post.
    Thats why I think it could be 
   a plugin problem.
 * You can take the url of the homepage given in my first post.
    This reports 0 
   while sharedcount reports 2. this is a page in main language german.
 * If you like to check with a post in italian, take colcaffe.project3k.com/crostata-
   di-primavera-fragole-rabarbaro-meringa/?lang=it.
    Also for this the plugin gives
   0 and sharedcount gives 8 likes, 2 shares Btw: pinterest is always right
 *  Plugin Author [Ben Cole](https://wordpress.org/support/users/bcole808/)
 * (@bcole808)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069450)
 * Okay, I checked some URLs on your site and I think the issue does have to do 
   with the language support.
 * For example, the home page is available at these three URLs:
    - [http://colcaffe.project3k.com/?lang=en](http://colcaffe.project3k.com/?lang=en)
    - [http://colcaffe.project3k.com/?lang=it](http://colcaffe.project3k.com/?lang=it)
    - [http://colcaffe.project3k.com/](http://colcaffe.project3k.com/)
 * Some social networks (maybe Pinterest) treat these as the same URL, but other
   social networks (like Facebook) treat these as different URLs. [You can see some example results for different URLs by clicking here](http://www.sharedcount.com/dashboard.php?urls=http://colcaffe.project3k.com/ich-backs-mir-erdbeer-sahne-torte/?lang=it,http://colcaffe.project3k.com/ich-backs-mir-erdbeer-sahne-torte/,http://colcaffe.project3k.com/?lang=en,http://colcaffe.project3k.com/?lang=it,http://colcaffe.project3k.com/).
 * In the future, I hope to make an automated feature which can detect these URL
   variations and automatically track them all. But for now, the plugin only looks
   up stats for the default URL to the post. However, if you want to do some work
   to track the different versions of the URL it would be possible like this:
 * The Social Metrics Tracker [can track data for multiple URLs for a post](https://github.com/chapmanu/wp-social-metrics-tracker#setting-alternate-urls)
   if you manually add each URL as a post meta field on the post. The field is called**
   socialcount_url_data** and you just need to put the alternate URL to the post
   in that field. So for example, you could add these extra meta fields to a post:
 * **socialcount_url_data:** “[http://colcaffe.project3k.com/ich-backs-mir-erdbeer-sahne-torte/?lang=it&#8221](http://colcaffe.project3k.com/ich-backs-mir-erdbeer-sahne-torte/?lang=it&#8221);
   **
   socialcount_url_data:** “[http://colcaffe.project3k.com/ich-backs-mir-erdbeer-sahne-torte/?lang=en&#8221](http://colcaffe.project3k.com/ich-backs-mir-erdbeer-sahne-torte/?lang=en&#8221);
 * And then the plugin would aggregate data for both of those URLs in addition to
   the default URL. It would even theoretically be possible to create a feature 
   for WPML and Social Metrics Tracker to automatically add the meta fields when
   a new language version of a post is available (I don’t have time to work on that
   feature, but maybe someone else does).
 * Hope this info is helpful!
 *  Thread Starter [energy3k](https://wordpress.org/support/users/energy3k/)
 * (@energy3k)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069452)
 * Hi Ben,
 * first of all thanks and compliments for the immediate support.
    Sorry to hear
   that the issue cannot be solved. As soon as there is a solution/update, let me
   know.
 * Greetings from Germany
 *  Andreas
 *  Thread Starter [energy3k](https://wordpress.org/support/users/energy3k/)
 * (@energy3k)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069462)
 * Hi Ben,
    just tried out your workaround, but did not work. Sorry
 * Would it make sense to get the issue sorted via the go global programmof WPML?
   
   [https://wpml.org/documentation/theme-compatibility/go-global-program/](https://wpml.org/documentation/theme-compatibility/go-global-program/)
 *  Plugin Author [Ben Cole](https://wordpress.org/support/users/bcole808/)
 * (@bcole808)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069476)
 * After adding the post custom field, did you click “Update Stats” for the post?
   If everything worked correctly, there should be a new button called “URL Details”
   which will show that both URLs are associated with the post.
 * Here is an example screenshot of what it looks like when there are two URLs paired
   with a post: [http://oi61.tinypic.com/etz3tc.jpg](http://oi61.tinypic.com/etz3tc.jpg)
 * I will look at that program sometime and see if it will help. I’ll also update
   this thread if I’m able to implement the feature which will automatically detect
   alternate URLs (but it might be a little while).
 *  Thread Starter [energy3k](https://wordpress.org/support/users/energy3k/)
 * (@energy3k)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069527)
 * I checked also the URL Details after updating the stats.
    There I find all associated
   URLs. For each of them FB counters are 0.
 * When I exported the statistics to an excel sheet, I found
    1. that only the main
   URLs are exported 2. that even for those the stat is 0 So I think there is also
   somthing basic wrong.
 *  Plugin Author [Ben Cole](https://wordpress.org/support/users/bcole808/)
 * (@bcole808)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069543)
 * Hmmm, yes I think you might be right that there is also something else wrong.
   As you describe, the plugin is now checking the associated URLs but the count
   is still being reported as zero for each of them.
 * I also got an email from someone else who is having this problem, and their website
   is in a language different from English also but they do not have multiple URLs.
   With information from this thread and the other email I got, I think I might 
   have found a solution but I am not sure.
 * Here is a link to an updated version of the plugin (1.5.2 – not yet released).
   Can you test out this version on your server and let me know if it is able to
   collect some numbers for Facebook?
 * [https://downloads.wordpress.org/plugin/social-metrics-tracker.1.5.2.zip](https://downloads.wordpress.org/plugin/social-metrics-tracker.1.5.2.zip)
 *  Thread Starter [energy3k](https://wordpress.org/support/users/energy3k/)
 * (@energy3k)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069559)
 * Ok. Some progress.
    Update installed. No hazzle with deinstall/ install (thumb-
   up)
 * Result: collection of facebook shares works for the likes in standard language.
   
   But only there. Means if there are 2 likes in german and 3 on the italian version
   of the post, then the tracker gives me only 2.
 *  Plugin Author [Ben Cole](https://wordpress.org/support/users/bcole808/)
 * (@bcole808)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069561)
 * Hooray, progress!
 * I found another bug where a count of “one” was being reported as “zero” and I’m
   hoping that might be the problem. Is it possible that the alternate URLs you 
   checked had a count of one? Or did they specifically have 2 or 3 likes?
 * Can you re-download and re-install this version again and see if that fixes the
   issue? It contains the fix where “one” was being reported as “zero”
 * [https://downloads.wordpress.org/plugin/social-metrics-tracker.1.5.2.zip](https://downloads.wordpress.org/plugin/social-metrics-tracker.1.5.2.zip)
 * (The .zip file for 1.5.2 is now updated with new code even though it’s the same
   link)
 *  Thread Starter [energy3k](https://wordpress.org/support/users/energy3k/)
 * (@energy3k)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069562)
 * Bingo!
 * You made it.
    Things work perfectly and al posts in all languages are reported
   individually which is perfect.
 * Congrats. Great plugin now.
 * For me we could close the topic….
    … unless you want to separate again between
   likes and shares. 🙂
 * But sometimes its also nice to leave some room for a next release
 * Again, compliments for the superfast response.
 *  Plugin Author [Ben Cole](https://wordpress.org/support/users/bcole808/)
 * (@bcole808)
 * [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069563)
 * Great, glad to hear it’s working! I will release this update for everyone soon,
   along with one other small update.
 * Thanks for helping me debug and get the plugin working for multi-language sites.
   I don’t have a multi-language site so I haven’t been able to test that out yet.
 * I would personally like to have likes and shares separated, however it seems 
   that Facebook is no longer making that data available and so that’s why it is
   gone from this plugin =(

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Facebook tracking WPML’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/social-metrics-tracker_99a19a.svg)
 * [Social Metrics Tracker](https://wordpress.org/plugins/social-metrics-tracker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/social-metrics-tracker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/social-metrics-tracker/)
 * [Active Topics](https://wordpress.org/support/plugin/social-metrics-tracker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/social-metrics-tracker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/social-metrics-tracker/reviews/)

## Tags

 * [subdomain](https://wordpress.org/support/topic-tag/subdomain/)

 * 14 replies
 * 2 participants
 * Last reply from: [Ben Cole](https://wordpress.org/support/users/bcole808/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/facebook-tracking-wpml/#post-6069563)
 * Status: resolved