1. Startseite
  2. Wissensdatenbank
  3. Facebook
  4. Facebook conversation tracking for app installs with Construct 2
  1. Startseite
  2. Wissensdatenbank
  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.

Aktualisiert am Mai 3, 2018

War dieser Beitrag hilfreich?

Verwandte Artikel

Nicht die Lösung nach der du gesucht hast?
Klicke hier unten um ein Support-Ticket zu erstellen.
Visist our Forum!

Hinterlasse einen Kommentar

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.