# C++ Build Configuration for AnalyticsBlueprintLibrary

**URL:** <https://forums.unrealengine.com/t/c-build-configuration-for-analyticsblueprintlibrary/373091>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [October 12, 2016, 2:04am UTC](https://forums.unrealengine.com/t/c-build-configuration-for-analyticsblueprintlibrary/373091 "2016-10-12T02:04:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_fe291daa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fe291daa](https://forums.unrealengine.com/u/anonymous_user_fe291daa)\
**Post date:** [October 12, 2016, 2:04am UTC](https://forums.unrealengine.com/t/c-build-configuration-for-analyticsblueprintlibrary/373091/1 "2016-10-12T02:04:45Z")

</div>

Hi, I’m trying to use the AnalyticsBlueprintLibrary in C++ but can’t get it to link. I’ve enabled the plug in but get linker errors when trying to use a function. This is my build.cs

PublicDependencyModuleNames.AddRange(new string[] {  
“AIModule”  
, “Analytics”  
, “AnalyticsBlueprintLibrary”  
…  
});

```
    // To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
    PrivateDependencyModuleNames.AddRange(new string[] { "Analytics", "AnalyticsBlueprintLibrary", ... } );

```

Thanks for any help, it would be really convenient to use the Blueprint lib natively as we’re a C++ based game an all of our events are in code.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_125752d7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_125752d7](https://forums.unrealengine.com/u/anonymous_user_125752d7)\
**Post date:** [November 24, 2016, 1:31pm UTC](https://forums.unrealengine.com/t/c-build-configuration-for-analyticsblueprintlibrary/373091/2 "2016-11-24T13:31:42Z")

</div>

Hello. Same problem.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_125752d7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_125752d7](https://forums.unrealengine.com/u/anonymous_user_125752d7)\
**Post date:** [November 25, 2016, 9:45am UTC](https://forums.unrealengine.com/t/c-build-configuration-for-analyticsblueprintlibrary/373091/3 "2016-11-25T09:45:37Z")

</div>

Hello. Solve for me is use this code.  
FAnalytics::Get().GetDefaultConfiguredProvider()-\>StartSession()  
FAnalytics::Get().GetDefaultConfiguredProvider()-\>EndSession()

You need add analitycs plugin. Game Analytics for example.Include this header.  
#include “Runtime/Analytics/Analytics/Public/Analytics.h”  
#include “Runtime/Analytics/Analytics/Public/Interfaces/IAnalyticsProvider.h”

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fe291daa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fe291daa](https://forums.unrealengine.com/u/anonymous_user_fe291daa)\
**Post date:** [November 25, 2016, 4:07pm UTC](https://forums.unrealengine.com/t/c-build-configuration-for-analyticsblueprintlibrary/373091/4 "2016-11-25T16:07:36Z")

</div>

This is not the solution I was looking for, we are doing this. The BlueprintAnalyticsLibrary just wraps everything nicely to interface with code, just like how you can use the GameplayStatics in code or blueprints.

My sad solution has just been to copy and paste it into another library class that is accessible ☹
