diff --git a/extras/Projucer/Source/Application/jucer_ProjucerAnalytics.cpp b/extras/Projucer/Source/Application/jucer_ProjucerAnalytics.cpp index 681a79e5ea..438fcd6784 100644 --- a/extras/Projucer/Source/Application/jucer_ProjucerAnalytics.cpp +++ b/extras/Projucer/Source/Application/jucer_ProjucerAnalytics.cpp @@ -116,6 +116,14 @@ bool ProjucerAnalyticsDestination::logBatchedEvents (const Array break; } + case ProjucerAnalyticsEvent::startPageEvent: + { + data.set ("ec", "Start Page"); + setData (event, data); + + break; + } + default: { // unknown event type! diff --git a/extras/Projucer/Source/Application/jucer_ProjucerAnalytics.h b/extras/Projucer/Source/Application/jucer_ProjucerAnalytics.h index 22bbdfedae..7b64f17191 100644 --- a/extras/Projucer/Source/Application/jucer_ProjucerAnalytics.h +++ b/extras/Projucer/Source/Application/jucer_ProjucerAnalytics.h @@ -34,7 +34,8 @@ enum ProjucerAnalyticsEvent appEvent, projectEvent, userEvent, - exampleEvent + exampleEvent, + startPageEvent }; //============================================================================== diff --git a/extras/Projucer/Source/Wizards/jucer_TemplateThumbnailsComponent.h b/extras/Projucer/Source/Wizards/jucer_TemplateThumbnailsComponent.h index 82c20ee123..f6fddc6db9 100644 --- a/extras/Projucer/Source/Wizards/jucer_TemplateThumbnailsComponent.h +++ b/extras/Projucer/Source/Wizards/jucer_TemplateThumbnailsComponent.h @@ -121,6 +121,14 @@ public: } private: + void clicked() override + { + StringPairArray data; + data.set ("label", getName()); + + Analytics::getInstance()->logEvent ("Start Page Button", data, ProjucerAnalyticsEvent::startPageEvent); + } + ScopedPointer thumb, hoverBackground; String name, description;