Download the PHP package combindma/laravel-trail without Composer

On this page you can find all versions of the php package combindma/laravel-trail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-trail

A simple package for tracking user activities on your Laravel website.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Laravel Trail is a powerful and easy-to-use package for tracking user activities on your Laravel website. Developed by Combind, this package automatically logs important information such as UTM tags, referrers, user actions, and more, giving you valuable insights into your users behavior and their journey through your website.

But WHY ?

The Laravel Trail is designed to help developers effortlessly capture and store user activity data on their websites. This package enables you to track vital information such as UTM tags, referrers, and user actions, which can be used to gain valuable insights into user behavior and website performance.

By storing this information, developers can easily integrate it with their preferred tracking tools, such as Google Analytics or other analytics platforms, to further analyze user interactions and optimize their websites for improved user experience, conversion rates and improve their marketing targeting.

Features

About Combind Agency

Combine Agency is a leading web development agency specializing in building innovative and high-performance web applications using modern technologies. Our experienced team of developers, designers, and project managers is dedicated to providing top-notch services tailored to the unique needs of our clients.

If you need assistance with your next project or would like to discuss a custom solution, please feel free to website for more information about our services. Let's build something amazing together!

Installation

You can install the package via composer:

You can publish the config file with:

This is the contents of the published config file:

Monitored Tags

Laravel Trail automatically tracks and stores the following tags, providing valuable insights into user behavior, traffic sources, and user demographics:

  1. UTM Tags

    • utm_source: Identifies the traffic source (e.g., google, newsletter, referral_website).
    • utm_medium: Describes the marketing medium (e.g., cpc, email, social).
    • utm_campaign: Provides details about the specific marketing campaign or promotion (e.g., spring_sale, newsletter_april).
    • utm_term: Captures the keywords used for paid search campaigns (e.g., running+shoes, digital+marketing).
    • utm_content: Differentiates between multiple links within the same ad or content piece (e.g., logo_link, text_link).
  2. Additional Tags

    • anonymous_id: A unique identifier for tracking anonymous users on your website.
    • user_id: A unique identifier for registered or logged-in users on your website.
    • email: A unique email for registered or logged-in users on your website.
    • name: Full name for registered or logged-in users on your website.
    • landing_page: The first page the user visits on your website during a session.
    • exit_page: The last page the user visits before leaving your website.
    • ip_address: The user's IP address, which can provide insights into their location and network.
    • last_activity: The date and time of the user's most recent activity on your website.
    • user_agent: The user agent string, which provides detailed information about the user's browser, operating system, and device.
    • language: The user's preferred language, as specified in their browser settings.
    • referrer: The URL of the referring website that sent the user to your website.
    • referrer_code: A unique code or ID associated with the referrer (e.g., an affiliate partner or referral program).
  3. Expected Tags for the futur
    • device: The type of device used by the user (e.g., desktop, tablet, mobile).
    • browser: The user's web browser (e.g., Chrome, Firefox, Safari).
    • operating_system: The user's operating system (e.g., Windows, macOS, Android, iOS).
    • screen_resolution: The user's screen resolution.
    • page_views: The number of pages viewed by the user during a single session.
    • conversion_date: The date when a user completes a desired action or goal (e.g., making a purchase or signing up for a newsletter).

These tags can help you optimize your website for better user experience and higher conversion rates by giving you a deeper understanding of user interactions and traffic patterns.

Usage

Add the setup middleware

This middleware is responsable for setting: anonymous_id, user_id, exit_page, landing_page, last_activity, user_agent, ip_address, language

Save UTM tags

You have 2 options to save the utm tags:

1. In your controller

2. Using a middleware in your route

Save Referrer

You have 2 options to save the utm tags:

1. In your controller

2. Using a middleware in your route

Save User ID or Email

You can capture a user id or email using an url with those parameters: user_id or email.

For exemple: domaine.com?user_id=123456&[email protected]

You have 2 options to save the user:

1. In your controller

2. Using a middleware in your route

Identify a user

The only required parameter is userId:

Get the cookies data

In order to get the saved data you can request it using:

This will return a formatted data object:

Additional methods

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-trail with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package combindma/laravel-trail contains the following files

Loading the files please wait ....