1. Home
  2. Facebook
  3. Facebook conversation tracking for app installs with Construct 2
  1. Home
  2. Mobile Built Services
  3. Cordova
  4. Facebook conversation tracking for app installs with Construct 2

Facebook conversation tracking for app installs with Construct 2

Facebook Conversation Tracking

In order to advertise your game on Facebook and Intsagram you need to add the Facebook Conversation Tracking to your game. So facebook is able to get data of your app installations and app launches.

Cocoon

Just install following facebook plugin to your cocoon project. Just use the “Custom” tab and enter the git repo url below.

https://github.com/jeduan/cordova-plugin-facebook4.git

 

 

This will add the Facebook SDK to your Cocoon (Cordova) game.

Now switch to the “Installed” tab and select the currently installed facebook plugin.

Add following two parameters to this plugin.

  • APP_ID
  • APP_NAME

As value add the APP ID and APP Name from your Facebook App. If you do not know how to create such an app, please see this guide.

This is how it should look like in your config.xml file then.

Implementation code



<plugin name="https://github.com/jeduan/cordova-plugin-facebook4.git" spec="https://github.com/jeduan/cordova-plugin-facebook4.git">
<variable name="APP_ID" value="YOUR ID"/>
<variable name="APP_NAME" value="YOUR NAME"/>
</plugin>

If you keep getting build errors, try this modificated code.



<plugin name="cordova-plugin-facebook4" source="npm" spec="1.7.4">
<variable name="APP_ID" value="YOUR ID"/>
<variable name="APP_NAME" value="YOUR NAME"/>
</plugin>

Data

Once you’ve built and uploaded your game you will receive data like shown below.

Updated on May 3, 2018

Was this article helpful?

Related Articles

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.