Ionic 3 Firebase Analytics with Google Tag Manager

Hi, in our application we are using ionic 3/ Angular 4 / Cordova iOS & Android trying to implement firebase analytics with Google Tag Manager. For this i am not getting the correct documentation from internet. Can some one please suggest us. Used the below for firebase which is working fine and struggling to link GTM container with firebase,

I have also tried with different cordova plugin to connect the GTM with firebase but it is not working. Need some guide, i have give below steps which i tried,

  1. Add firebase cordova plugin to connect firebase console which is working fine in this, https://github.com/arnesson/cordova-plugin-firebase

  2. With the same plugin i tried adding the GTM container files no error but no result too.

  3. after that tried with different plugin below,






  1. Throwing error in xcode as,

Undefined symbols for architecture x86_64:
" OBJC_CLASS $_GSDK_GTMStringEncoding", referenced from:
objc-class-ref in GoogleTagManager(TAGJSExportedInstructions_70bc2fc5a1f688e8d1aacb3320403856.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Please help me on this.