المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : شرح ربط جوجل أناليتكس Google Analytics فى سكريبت Whmcs



Rise Company
06-03-2019, 14:58
شرح ربط جوجل أناليتكس Google Analytics فى سكريبت Whmcs

Google Analytics
Google Analytics allows you to track how people find your site, how they navigate through it and how they become customers. You can see trends of pageviews, visits, bounce rate, conversion rate, geographical locations and much more.
And in WHMCS, we've made it easy to install & use by creating an addon module that fully automates the integration process.

Setup
The first step of tracking e-commerce transactions with Google Analytics is to enable e-commerce reporting for your website's profile inside the Google Analytics panel:

https://www.rise.company/forum/images/imported/2019/03/2.png (https://docs.whmcs.com/File:Ganalytics1.png)
Enable the Ecommerce Setting



Sign in to your account.
Click the Admin cog icon in the bottom-right corner
In the View column, click the Ecommerce Settings link
Toggle the E-Commerce Website radio button from No to Yes
Click Save


Once you've done this, return to the WHMCS Admin area:



Navigate to Setup > Addon Modules
Click the green Activate button next to the Google Analytics module
Click the Configure button
Enter your Analytics Tracking ID and optionally Root Domain (if you use multiple subdomains for your site) where requested.
Click Save Changes

If you are using a custom template set, you need to ensure that your footer.tpl file contains the {$footeroutput} template tag just before the closing </body> tag in order for the tracking code to be output.



ملحوظات :
- يتم اختيار Universal Analytics
- الكود {$footeroutput} موجود غالبا فى نهاية الصفحة , لن تحتاج لاضافته.
- يتم تنزيل اضافة Tag Assistant (by Google) على متصفح جوجل
وفتح الموقع وعمل refresh بعد عمل enable اذا كان اللون اخضر
فالربط سليم اما احمر معنى ذلك هناك خطا

Goal Tracking
Once integrated, you can also take advantage of goal tracking. What goal tracking does is allow you to set specific pages that define a user has reached the ultimate intended destination. For most people this is completing an order - placing & paying.
In WHMCS the goal url for a completed & paid order is /whmcspath/cart.php?a=complete This is the page a user ends up on after completing checkout, and making payment for the order using any of the online real-time gateways.
Unfortunately if using an offline gateway such as Mail in Payment or Bank Transfer, where you aren't paid in real-time, then goal tracking will not be able to track the conversions of those users.

المرجع:
https://docs.whmcs.com/Google_Analytics

شاهد ايضا :
الفرق بين جوجل أناليتكس Google Analytics و Universal analytics (https://www.rise.company/forum/threads/39363-%D8%A7%D9%84%D9%81%D8%B1%D9%82-%D8%A8%D9%8A%D9%86-%D8%AC%D9%88%D8%AC%D9%84-%D8%A3%D9%86%D8%A7%D9%84%D9%8A%D8%AA%D9%83%D8%B3-Google-Analytics-%D9%88-Universal-analytics)