1. Home
  2. Knowledge Base
  3. Facebook
  4. Facebook conversation tracking for app installs with Construct 2
  1. Home
  2. Knowledge Base
  3. Mobile Built Services
  4. Cordova
  5. 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.

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

 

 

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

[xml]

<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>

[/xml]

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

[xml]

<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>

[/xml]

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

Not the solution you were looking for?
Click the link below to submit a support ticket
Visist our Forum!

Leave a Comment

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