angulartics / angulartics2

Vendor-agnostic analytics for Angular2 applications.
MIT License
1.01k stars 192 forks source link

Facing issue with implement content track using piwik/matomo + angulartics2 #296

Open narendralussspacetech opened 6 years ago

narendralussspacetech commented 6 years ago

I'm about to capture my page specific block content into piwik/matomo using angulartics2 but I can't figure out OR unable to do that.

I reviewed the plugin code from github So, I think that it seems like no support given by angulartics2 for block content kinds of stuff.

I also drill into matomo given introduction about How to Content Tracking and I'm now helpless. However, event tracking is working fine!

HTML Example

<div data-track-content>
    <div [data-content-name]="data.name">{{data.name}}</div>
    <span [data-content-piece]="data.catalog">{{data.catalog}}</span>
    <span [data-content-target]="data.path"></span>
    /*
    Also tried below structure but it's not working too:
        <div data-content-name>{{data.name}}</div>
        <span data-content-piece>{{data.catalog}}</span>
        <a href="www.example.com" data-content-target>Buy Now</a>
    */
</div>
HarelM commented 3 years ago

@narendralussspacetech did you ever got this working? I'm wondering if I should switch out of google analytics to a more parivacy-oriented service like matomo...