Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add constant KOKO_ANALYTICS_CUSTOM_ENDPOINT to allow using a custom e…
- Loading branch information
1 parent
ea5c0b6
commit 9a50f9a
Showing
6 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
define( 'KOKO_ANALYTICS_CUSTOM_ENDPOINT', false ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
# Creating the custom endpoint file | ||
// To use a different custom endpoint file location, first create a file at your preferred location and copy over the contents from the file linked below | ||
// file: https://github.com/ibericode/koko-analytics/blob/master/koko-analytics-collect.php | ||
|
||
# Fix path references | ||
// In the file, fix the relative file paths to the uploads directory and the functions.php file from the wp-content/plugins/koko-analytics directory. | ||
|
||
# Define a constant | ||
// To tell Koko Analytics of your custom endpoint, define the following constant: | ||
define( 'KOKO_ANALYTICS_CUSTOM_ENDPOINT', '/path-to-your-custom-endpoint-file.php' ); | ||
|
||
# Test the result | ||
// Finally, ensure the file is accessible through your web server and that Koko Analytics is able to use it correctly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters