davoodjavadi/cta-records

There is no license information available for the latest version (dev-main) of this package.

records clicks of cta buttons

dev-main 2024-12-06 14:37 UTC

This package is auto-updated.

Last update: 2025-06-06 16:03:17 UTC


README

#Cta Records In Laravel Project

Dynamically record clicks on call-to-action buttons in Laravel.

By installing this package, all <a> tags that include the href="tel:" attribute will be stored in the database when clicked by the user, with that number and address of the current page.

###Installation

  1. First by Composer:
$ composer require davoodjavadi/cta-records
  1. After add the ServiceProvider to the providers array in config/app.php:
davoodjavadi\ctaRecords\CtaRecordsProvider::class,
  1. And Add this to your aliases:
'CtaRecords' => davoodjavadi\ctaRecords\CtaRecordsFacade::class,
  1. After to publish use:
php artisan vendor:publish --provider="davoodjavadi\ctaRecords\CtaRecordsProvider"
  1. Now Run:
$ php artisan migrate
  1. Finally, place the views\ctaRecods\script codes next to your own codes.