The secondary methods of devtodev SDK for UE4

Initial referrer tracking

Unfortunately, Apple does not provide any capability to pass a referrer string through to your app from a link to the app store. But if you have a referral info, you can set it using the method below:

Blueprint

Field

Type

Description

Source

FString

To identify a search engine, newsletter name, or other source.
(for example 'AdWords', 'Bing', 'E-Mail Newsletter')

Medium

FString

To identify a medium such as email or cost-per-install.
(for example 'CPI')

Campaign

FString

To identify a specific product promotion or strategic campaign.
(for example 'Snow Boots')

Content

FString

To differentiate ads or links that point to the same URL.
(for example some ads might advertise 'Warm Snow Boots'
and others might advertise 'Durable Snow Boots')

Term

FString

To note the keywords for this ad.
for example 'shoes+boots')

Code

UDevToDevBlueprintFunctionLibrary::Referrer(const TArray<FAnalyticsEventAttr>& Attributes);

Connecting to social network

To track the existence of a connection with a social network.

Blueprint

 
Field Type Description
Social Name FString Social network Id

Code

// Tracks the existence of a connection with a social network.
// Use pre-defined or custom values as an identifier.
// FString socialNetwork - social network id (max. 24 symbols)

UDevToDevBlueprintFunctionLibrary::SocialNetworkConnect(const FString& socialNetwork);

We recommend using the following values for the most popular social networks:

Value

Social Network

Value

Social Network

en

Evernote

rt

Reddit

fb

Facebook

rr

Renren

gm

Google Mail

tb

Tumblr

gp

Google+

tw

Twitter

in

LinkedIn

vk

VK

ok

Odnoklassniki

vb

Viber

pi

Pinterest

wp

WhatsApp

qq

Qzone

   

Posting to social network

Track publications to social networks from the app to improve viral marketing efficiency.The event is sent after the social network confirms the publication.

Blueprint

 

Field Type Description
Social Name FString Social network Id
Reason FString

The reason of posting (max. 32 symbols)

Code

// Tracks the existence of posts to a social network.
// FString socialNetwork - social network Id
// FString reason - the reason of posting (max. 32 symbols)

UDevToDevBlueprintFunctionLibrary::SocialNetworkPost(const FString& socialNetwork, const FString& reason);

As a «reason» parameter we recommend that you indicate actions which encourage users to make publication.

For example:

  • Start playing
  • New level reached
  • New building
  • New ability
  • Quest completed
  • New item
  • Collection completed
  • Invitation

 

  • Asking for help
  • New Record
  • Achievement
  • URL sharing
  • Recommendation
  • Review

and so on...

We recommend using the following values for the most popular social networks:

Value

Social Network

Value

Social Network

en

Evernote

rt

Reddit

fb

Facebook

rr

Renren

gm

Google Mail

tb

Tumblr

gp

Google+

tw

Twitter

in

LinkedIn

vk

VK

ok

Odnoklassniki

vb

Viber

pi

Pinterest

wp

WhatsApp

qq

Qzone

 

Forced sending

To send events pack before it is filled or before its formation period you can use immediate dispatch:

Code

// Sends events pack before it is filled or before its formation period

FAnalytics::Get().GetDefaultConfiguredProvider()->FlushEvents();

 

To identify a specific product promotion or strategic campaign.
(for example 'Snow Boots')
User profile
Checking the events