How to check in Google Analytics which device clicked my tracking event? - events

In my Google analytics account I'm tracking some events from my website using GA _gaq.push event. GA tracking report shows total events clicked but it doesn't shows via which device that event had been clicked. Even in GA->Audience->Mobile->Devices section only shows which devices visit the page but it doens't give the report which device clicked the event.
Basically I need categorze the trackevent to PC and Mobile clicks. I know this can be done via php appending some text to trackevent if this click from mobie site. eg:
<?php
if($mobileSite){
_gaq.push(['_trackEvent', 'category', 'action', 'opt_label_m', opt_value_m]);
}else{
_gaq.push(['_trackEvent', 'category', 'action', 'opt_label', opt_value]);
}
?>
I need to know is GA already doing this job for tracking events ?

"Advanced Segment" has a pre-defined "Mobile Traffic" segment. If you apply that and look at your event reports you'll see only events triggered by mobile devices (likewise you can create an "not mobile traffic" segment and apply both segments, which gives you a compare view between the two).
Updated to add
You can create a custom report to get want you need:
Customization->New Custom Report->Dimension "Mobile Device Branding" (or "Device Marketing Name" or "Device Model") -> Metric : Event Value -> Filter "Event Label" (or "Event Category) -> save.
So not a standard report, but it's possible.

Related

power automate : move name of flow to chat section items?

We created a power automate flow (using "for a selected message"), any message posted to the channel, we click "three dots" and click "more actions" then "See more" to select name of the power automate flow and execute accordingly. This doesnt sound to be user friendly.
Is there any way we can "pin" the name of the flow to somewhere nearest for example under chat section on the bottom of the screen ? So that it becomes more user friendly.
For more visibility, posting the answer from comment section:
The functionality you are trying to implement doesn't seem to be feasible at the moment.

How to handle adaptive cards with mobile view

Is there any way to be more specific with adaptive cards on mobile.
Here I'm using bot-framework with adaptive cards. More precisely, I am building table view in cards.
Looking for adding pagination in the table.
Adding scrolling in table.
AdaptiveCards do not allow scrolling or paging.. But we can do with Carousel feature.Please check the below code:
{
attachmentLayout: Attacenter code herehmentLayoutTypes.Carousel,
attachments: [CardFactory.adaptiveCard()]
}
Other work Around Solution,
If you want to implement paging you could add a "next page" button to your card, when pressed you just update the card with the new list data.
MS Teams allows you to update cards/message you already sent so you could send the first page and when a user clicks on the action button you sent the second page etc.

Use input for update message in a Teams Flow - Post Adaptive Card action

With the "Post an adaptive card" action in Flow / Power Automate -> Microsoft Teams there's the option to specify an "update message" following the user response to the card.
How can I access the data inputs and the submitActionId for use in this message?
The use case is as follows:
user receives the card and enters data into a textfield.
user clicks one of two buttons (similar to "approve" and "reject")
(what I want to do:) card is updated to show what text the user entered and which button was pressed.
I can access other dynamic data that have been created by previous actions in the "update message" field. But the output of this adaptive card action itself is not available "within" the action, not by normal means anyway. Later in the flow it's necessary to parse the JSON output of this action.
Supplementary question: Is it possible to style the "update message". Currently it appears all bold.
Supplementary info: the "update message" field does not appear to accept another adaptive card (would have been logical...). If I enter adaptive card json there, it just gets spat back out literally in Teams.

How to Add a scroll bar to an adaptive card

I m showing a list of users in a card, can I add a scrollbar to the card so that it fits the screen size?
I am currently using Adaptive card 1.0 and sending this card to MS Teams.
AdaptiveCards do not allow scrolling or paging.
If you want to implement paging you could add a "next page" button to your card, when pressed you just update the card with the new list data.
MS Teams allows you to update cards/message you already sent so you could send the first page and when a user clicks on the action button you sent the second page etc.
AdaptiveCards do not have the ability to specify scrolling.But we can do with Carousel feature.
{
attachmentLayout: Attacenter code herehmentLayoutTypes.Carousel,
attachments: [CardFactory.adaptiveCard()]
}
AdaptiveCards do not have the ability to specify scrolling. It would be up to the client to implement this functionality. However, you may be able to send a list card, depending on if it suits your needs.

Query regarding response of Mixpanel.track event

Suppose I have different cards, or section in a page with “like” button on every card. On clicking this card, a Mixpanel “like” event is fired with some custom properties – Button Name, Card/Section name etc.
Question –
Now if I want to show the count of “like” on every card, in real – time, how can we do that. An example is – if the user clicks like on a card, the count of like for the card will increment without refreshing the page. Will it be possible to get the response of “mixpanel.track” event and in response fetch the count of “like” event and display below every card.
Currently I am using below mentioned API URL which is returning list of all entries for the specified event and property.
URL – https://mixpanel.com/api/2.0/events/properties/?name=Name of property&event=Name of Event&type=general&unit=month"
you can use the callback in mixpanel.track
https://mixpanel.com/help/reference/javascript-full-api-reference#mixpanel.track
One more thing you should do is use mixpanel.increment so like count gets stored in mixpanel as well
https://mixpanel.com/help/reference/javascript-full-api-reference#mixpanel.people.increment
Hope this helps,
Che

Resources