Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Analytics embedding question

Featured Replies

I have been working on a site for some time now. Everything has been going good until I ran into an issue. I would like to display certain YouTube channel stats, being total viewer count and subscribers. I would also like to do the same for Twitch.tv but have the follower count and view count. I have enough knowledge in html, css... so on and so forth.... but I don't have much in php. I have read over all the documentation on Google's dev site as well as Twitch's and cant figure out how to get it to work.

 

Below is the layout in html on how I want it, but have no idea how to implament the actual numbers. Any help would be greatly appricated!

 

Thanks!

 

 

<div class="card">
    <div class="row">
        <h3 class="col-md-12 no-bottom">Statistics</h3>
    </div>
    <div class="row box-counts">
        <div class="col-md-6 countTo text-center">
            <span class="boxed">
                <strong class="styleColor" data-to="0">0</strong>
                <label>Subscribers</label>
            </span>
        </div>
        <div class="col-md-6 countTo text-center">
            <span class="boxed">
                <strong class="styleColor" data-to="0">0</strong>
	        <label>Views</label>
	    </span>
        </div>
    </div>
    <div class="text-center row box-counts">
        <div class="col-md-6 countTo">
            <span class="boxed">
	        <strong class="styleColor" data-to="0">0</strong>
	        <label>Twitch Followers</label>
	    </span>
        </div>
        <div class="col-md-6 countTo">
            <span class="boxed">
                <strong class="styleColor" data-to="0">0</strong>
	        <label>Twitch Views</label>
	    </span>
        </div>
    </div>
</div> 

 

 

  • Author

I know and I said in the post that I have read all of the API documentation. Google dev has generalized examples and how to do things, doesn't actually help you. And I don't know much php or json to use the Twitch API. That's why I was asking for help or for someone to help guide me in a direction further than just look at the documentation which I already have.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.