Adding GA Event code to Joomla {tab} - joomla

I am trying to add a Google Analytics event to track if a tab has been clicked on in a page. I am using Joomla 2.5.7 and in the article is has this markup for the tabs extension:
<p>{tab Rates}</p>
This is the tab at the top of the page. I want to add the following universal analytics tracking event code:
onclick="ga('send', 'event', 'tab active', 'click', 'rates');"
to track when someone looks at this tab.
Currently I have only used this onclick event on an anchor, but as using Joomla this isn't working and is just showing up on the page.
Please advise the best place to get this information and how to activate it. Thanks all.

Related

Jquery mobile - scroll to bottom automatically after page is loaded

I'm building a peer-to-peer chat. Whenever I open the chat (means after server-roundtrip) the suiting jsp will be displayed decided by a spring-controller. The latest chat comment is at the bottom of the scrollable page.
Unfortunately when page is loaded there's no reaction to the jquery method like
$(document).scrollTop(1000);
to get to the bottom of the page.
I also put this method inside pageInit and pageBeforeShow events of jqm. But in vain.
What's wrong?

How to create a Google Hangout button for chat-only?

I added a Google Hangout button to my page following the instructions:
<script src="https://apis.google.com/js/platform.js" async defer>
</script>
<g:hangout
render="createhangout"
topic="cpp11"
hangout_type="moderated"
invites="[{ id : '74838920', invite_type : 'PROFILE' },
{ id : 'my.email#gmail.com', invite_type : 'EMAIL' }]">
</g:hangout>
When I press that button a Video Hangout starts (informaing me I should enable video). I am also not sure if I have the hangout invitee correctly, but I will adress that later.
How to let let a chat-only window open on the button press?
I looked at the documentation and there is no way of doing it.
https://developers.google.com/+/hangouts/api/gapi.hangout.av#gapi.hangout.av.CameraMuteEvent
The only way to do it is to ask the participants to click on the "Turn Camera Off" button on the top once they enter the hangout.
There is an option now:
Use https://hangouts.google.com/chat/person/profileID. The profile ID is a unique ID of the user and can be retreived via People API
I don't think chat/text only functonality is available. Your question has been asked before in more general terms (not specific to Google+ Hangout button):
Hangout (chat only) integration in web page - getting started?
Can Google Hangouts be used for Text Only Live Chat from my WordPress website?
There's not even a way to disable the video by default.
Disable video by default in Google hangout?
I can't find official documentation stating chat only is not possible, but the tag line for Google Hangout Apps is: "Some things are better face-to-face." The APIs also suggests video is really the focus for Google Hangouts.
there certainly is a way. if you visit someone's G+ page you will find a hangout-symbol right below their profile - clicking this opens a chat-window, not a videocall.
https://plus.google.com/u/0/replace_this_with_a_google_id/posts

Using Yammer embed to display feeds

I am using Yammer embed to show a group feed on a page in my ASP.NET MVC3 application. I have created a div whose Id is embedded-feed. I am using below javascript code to show a group feed.
<script src="https://assets.yammer.com/assets/platform_embed.js"></script>
<script data-app-id="<<valid app id>>" type="text/javascript">
yam.connect.embedFeed({
container: "#embedded-feed",
network: "<<valid-site>>.com",
feedType: "group",
feedId: "<<Id for feed>>"
});
Upon loading the page, Yammer widget shows up with login button. When I click on login button, it opens up a new browser window and I get a pop up with the message - "The web page you are viewing is trying to close the tab. Do you want to close the tab?" I have already added yammer.com to trusted sites. Please share if you have any thoughts on what am I missing here.
-Thanks,
Add yammer.com to trusted sites in Internet Explorer settings...
uncheck the checkbox to very server security.

facebook wall-like ajax in yii's zii widget list

I'm very new to yii, and I'm trying to integrate the facebook-wall-like style into my post list.
In short, I just want to add a "Load More" with ajax to load more posts at the bottom of the post list.
I know how to write ajax or html, but I don't know how to integrate this style into yii.
I'v tried the zii.widgets.CListView/CDetailView.. but I can't find ways to add ajax.
If there's anyone who knows the how-to, please share it with me.
Thanks!
Take a look at this extension, it is a pager that adds infinite scroll like in twitter - when you get to the bottom of the page it loads more content via ajax. If you prefer to load more only once a button is pressed, i'm sure it's just a matter of overriding the button's onclick event.

Google Event Tracking on <p> clicks

I am looking to implement Google Event Tracking on a new website and couldn't find any documentation on this, but basically I just need to confirm that I add the standard 'onClick="_gaq.push([...' to a paragraph tag (which I have a jQuery event on already), the event tracking will still function as it would on an

Resources